Skip to content

Commit 8852c9e

Browse files
vkuttypCopilot
andcommitted
fix: bump CI SPM cache keys to v2 to clear stale repo-path cache
Old .build cached as 'sql-nio' repo path causes PCH module path mismatch after rename to CosmoSQLClient-Swift. New v2 keys force a clean build. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3c2bbb1 commit 8852c9e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
uses: actions/cache@v4
3939
with:
4040
path: .build
41-
key: macos-spm-${{ env.SWIFT_VERSION }}-${{ hashFiles('Package.resolved') }}
42-
restore-keys: macos-spm-${{ env.SWIFT_VERSION }}-
41+
key: macos-spm-v2-${{ env.SWIFT_VERSION }}-${{ hashFiles('Package.resolved') }}
42+
restore-keys: macos-spm-v2-${{ env.SWIFT_VERSION }}-
4343
- run: swift test --filter SQLiteNioTests 2>&1
4444
- run: swift test --filter SQLNioCoreTests --skip-build 2>&1
4545

@@ -65,8 +65,8 @@ jobs:
6565
uses: actions/cache@v4
6666
with:
6767
path: .build
68-
key: linux-spm-${{ env.SWIFT_VERSION }}-${{ hashFiles('Package.resolved') }}
69-
restore-keys: linux-spm-${{ env.SWIFT_VERSION }}-
68+
key: linux-spm-v2-${{ env.SWIFT_VERSION }}-${{ hashFiles('Package.resolved') }}
69+
restore-keys: linux-spm-v2-${{ env.SWIFT_VERSION }}-
7070

7171
- name: Build
7272
run: swift build --build-tests --configuration debug 2>&1

0 commit comments

Comments
 (0)