Skip to content

Commit 852fa86

Browse files
committed
fix: bust github actions SPM cache to clear stale upstream C++ files
1 parent d5897eb commit 852fa86

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
path: .build
2424
# Key includes product name so any rename (e.g. mlx-server→SwiftLM)
2525
# automatically busts the cache and prevents stale PCH errors.
26-
key: ${{ runner.os }}-spm-SwiftLM-${{ hashFiles('Package.resolved') }}
26+
key: ${{ runner.os }}-spm-SwiftLM-v2-${{ hashFiles('Package.resolved') }}
2727
restore-keys: |
28-
${{ runner.os }}-spm-SwiftLM-
28+
${{ runner.os }}-spm-SwiftLM-v2-
2929
3030
- name: Resolve dependencies
3131
run: swift package resolve

.github/workflows/e2e-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
uses: actions/cache@v4
2525
with:
2626
path: .build
27-
key: ${{ runner.os }}-spm-SwiftLM-${{ hashFiles('Package.resolved') }}
27+
key: ${{ runner.os }}-spm-SwiftLM-v2-${{ hashFiles('Package.resolved') }}
2828
restore-keys: |
29-
${{ runner.os }}-spm-SwiftLM-
29+
${{ runner.os }}-spm-SwiftLM-v2-
3030
3131
- name: Clear stale module cache
3232
# Prevents: "PCH was compiled with module cache path '…mlx-server…'

0 commit comments

Comments
 (0)