Skip to content

Commit 53176e9

Browse files
committed
Use a Rust cache github action
1 parent a53420b commit 53176e9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,7 @@ jobs:
2222
rust: nightly
2323
steps:
2424
- uses: actions/checkout@v2
25-
- uses: actions/cache@v2
26-
if: ${{ matrix.rust == 'stable' }}
27-
with:
28-
path: |
29-
~/.cargo/registry
30-
~/.cargo/git
31-
target
32-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
25+
- uses: Swatinem/rust-cache@v2
3326
- uses: actions-rs/toolchain@v1
3427
with:
3528
profile: minimal

0 commit comments

Comments
 (0)