Skip to content

Commit 0fced2b

Browse files
committed
fix: add xlings update + bust cache for macOS mcpp install
- Add `xlings update` before install to refresh pkgindex - Bump cache key to invalidate stale xlings data
1 parent 3edf160 commit 0fced2b

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci-macos.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
uses: actions/cache@v4
3434
with:
3535
path: ~/.xlings
36-
key: xlings-macos15-arm64-${{ hashFiles('.xlings.json') }}
36+
key: xlings-macos15-arm64-v2-${{ hashFiles('.xlings.json') }}
3737
restore-keys: |
38-
xlings-macos15-arm64-
38+
xlings-macos15-arm64-v2-
3939
4040
- name: Bootstrap xlings
4141
env:
@@ -270,6 +270,8 @@ jobs:
270270
271271
- name: Install mcpp@0.0.16 via xlings
272272
run: |
273+
# Update package index to pick up new macOS entries
274+
xlings update -y 2>/dev/null || true
273275
xlings install mcpp -y
274276
mcpp --version
275277

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ jobs:
318318
- name: Install mcpp@0.0.16 via xlings
319319
run: |
320320
export PATH="$HOME/.xlings/subos/default/bin:$PATH"
321+
xlings update -y 2>/dev/null || true
321322
xlings install mcpp -y
322323
mcpp --version
323324

0 commit comments

Comments
 (0)