From c212fc7d460794d3cfdf54491e5b3d118e5179ab Mon Sep 17 00:00:00 2001 From: Florian Friedrich Date: Tue, 8 Dec 2020 14:07:54 +0100 Subject: [PATCH] Include repo in cache key --- .github/workflows/release.yml | 4 ++-- .github/workflows/swift-test.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a575541..cfc8b68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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}} diff --git a/.github/workflows/swift-test.yml b/.github/workflows/swift-test.yml index 9122adb..43e94fc 100644 --- a/.github/workflows/swift-test.yml +++ b/.github/workflows/swift-test.yml @@ -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 @@ -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