Skip to content

Commit 3d6bd4a

Browse files
committed
add if to cache
1 parent 61d62a2 commit 3d6bd4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
~/.cargo/registry
9393
target
9494
key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
95+
if: matrix.rust.name != 'MSRV'
9596
# ... and on msrv runs, use another
9697
- uses: actions/cache@v4
9798
with:
@@ -100,6 +101,7 @@ jobs:
100101
~/.cargo/registry
101102
target
102103
key: "${{runner.os}} Rust ${{steps.msrv-toolchain.outputs.cachekey}}"
104+
if: matrix.rust.name == 'MSRV'
103105
# finally we can run tests
104106
- run: cargo test --lib --locked
105107
- run: cargo test --doc --locked

0 commit comments

Comments
 (0)