From 6663eef6cd9fa882d0fdbb8109e68f05d80db570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20H=C3=BCbener?= Date: Sat, 3 Feb 2024 14:08:44 +0100 Subject: [PATCH] use cache key unique key over different jobs --- .github/workflows/rust.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 349e5e6..d4f7f13 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -34,7 +34,8 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@v2 - # with: + with: + shared-key: "build-cache" # save-if: ${{ github.ref == 'refs/heads/master' }} - run: cargo check --no-default-features --features=${{ matrix.features}} @@ -51,7 +52,8 @@ jobs: toolchain: stable components: clippy - uses: Swatinem/rust-cache@v2 - # with: + with: + shared-key: "build-cache" # save-if: ${{ github.ref == 'refs/heads/master' }} - run: cargo clippy --no-default-features --features=${{ matrix.features}} @@ -67,6 +69,7 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@v2 - # with: + with: + shared-key: "build-cache" # save-if: ${{ github.ref == 'refs/heads/master' }} - run: cargo test --no-default-features --features=${{ matrix.features}}