summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Forbes <tom@tomforb.es>2023-05-22 12:28:11 +0100
committerTom Forbes <tom@tomforb.es>2023-05-22 12:28:11 +0100
commita7f9f667a4f3d43919aaadecdaa12baebec93e94 (patch)
tree349bcf1a793d4c5d9d4cb609c2b5d1fb08e84d4d
parent920e815c1e858aae33d3adb2afa47ecc44c6fff8 (diff)
Add an explicit cache key to rust-cache@v2 builds
-rw-r--r--.github/workflows/test.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 72acfcd..261718c 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -95,7 +95,8 @@ jobs:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
-
+ with:
+ prefix-key: alpine-build-
- name: Run tests
uses: actions-rs/cargo@v1
with:
@@ -121,6 +122,8 @@ jobs:
target: ${{ matrix.target }}
override: true
- uses: Swatinem/rust-cache@v2
+ with:
+ prefix-key: cross-build-${{ matrix.target }}-
- uses: actions-rs/cargo@v1
with:
use-cross: true
@@ -167,6 +170,8 @@ jobs:
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
+ with:
+ prefix-key: checks-build-
- name: Run cargo fmt
uses: actions-rs/cargo@v1