Skip to content

Commit

Permalink
Only hash Package.resolved at root on linux
Browse files Browse the repository at this point in the history
This seems to fail with `**/`
  • Loading branch information
JosephDuffy committed Feb 6, 2024
1 parent 01f2415 commit fa10ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-swift_${{ matrix.swift }}-swiftpm-deps-${{ github.ref }}-${{ hashFiles('**/Package.resolved') }}
key: ${{ runner.os }}-swift_${{ matrix.swift }}-swiftpm-deps-${{ github.ref }}-${{ hashFiles('Package.resolved') }}
restore-keys: |
${{ runner.os }}-swift_${{ matrix.swift }}-swiftpm-deps-${{ github.ref }}-
${{ runner.os }}-swift_${{ matrix.swift }}-swiftpm-deps-main-
Expand Down

0 comments on commit fa10ec2

Please sign in to comment.