Skip to content

Commit

Permalink
use cache key unique key over different jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
teamplayer3 committed Feb 3, 2024
1 parent 1d480da commit 6663eef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand All @@ -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}}

Expand All @@ -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}}

0 comments on commit 6663eef

Please sign in to comment.