Skip to content

Commit c59da56

Browse files
committed
Fix GitHub Actions hashFiles() pattern for all platforms
- Use '**/Package.swift' pattern instead of 'Package.swift' alone - Apply consistently across macOS and Linux jobs - Should resolve 'failed to hash files' errors on GitHub runners
1 parent b53a7a4 commit c59da56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/cache@v4
3232
with:
3333
path: .build
34-
key: macos-swift62-spm-${{ hashFiles('Package.swift') }}
34+
key: macos-swift62-spm-${{ hashFiles('**/Package.swift') }}
3535
restore-keys: |
3636
macos-swift62-spm-
3737
@@ -69,7 +69,7 @@ jobs:
6969
uses: actions/cache@v4
7070
with:
7171
path: .build
72-
key: linux-swift62-spm-${{ hashFiles('Package.swift', 'Package@*.swift') }}
72+
key: linux-swift62-spm-${{ hashFiles('**/Package.swift') }}
7373
restore-keys: linux-swift62-spm-
7474

7575
# Note: swift test builds automatically in release mode
@@ -89,7 +89,7 @@ jobs:
8989
uses: actions/cache@v4
9090
with:
9191
path: .build
92-
key: linux-swift62-compat-spm-${{ hashFiles('Package.swift', 'Package@*.swift') }}
92+
key: linux-swift62-compat-spm-${{ hashFiles('**/Package.swift') }}
9393
restore-keys: linux-swift62-compat-spm-
9494

9595
# Note: swift test builds automatically

0 commit comments

Comments
 (0)