Skip to content

Commit

Permalink
Include repo in cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Dec 8, 2020
1 parent 67cccb6 commit c212fc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- uses: actions/cache@v2
with:
path: .build
key: ${{runner.os}}-spm-${{hashFiles('**/Package.resolved')}}
key: ${{runner.os}}-${{github.repository}}-spm-${{hashFiles('**/Package.resolved')}}
restore-keys: |
${{runner.os}}-spm-
${{runner.os}}-${{github.repository}}-spm-
- uses: sersoft-gmbh/swifty-docs-action@v1
with:
module-version: ${{steps.get-tag.outputs.tag}}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/swift-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- uses: actions/cache@v2
with:
path: .build
key: ${{runner.os}}-spm-${{hashFiles('**/Package.resolved')}}
key: ${{runner.os}}-${{github.repository}}-spm-${{hashFiles('**/Package.resolved')}}
restore-keys: |
${{runner.os}}-spm-
${{runner.os}}-${{github.repository}}-spm-
- name: Generate Linux Tests
run: swift test --generate-linuxmain
- name: Check for git differences
Expand All @@ -42,9 +42,9 @@ jobs:
- uses: actions/cache@v2
with:
path: .build
key: ${{runner.os}}-spm-${{hashFiles('**/Package.resolved')}}
key: ${{runner.os}}-${{github.repository}}-spm-${{hashFiles('**/Package.resolved')}}
restore-keys: |
${{runner.os}}-spm-
${{runner.os}}-${{github.repository}}-spm-
- name: Build & Test
run: swift test -v --parallel --enable-code-coverage
- name: Generate Coverage Files
Expand Down

0 comments on commit c212fc7

Please sign in to comment.