Skip to content

Commit 34bfb1c

Browse files
committed
remove unnecessary toolchain and add cache to lint job
1 parent fa3672e commit 34bfb1c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/rust.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ jobs:
2424
profile: minimal
2525
components: rustfmt, clippy
2626

27+
- uses: actions/cache@v2
28+
with:
29+
path: |
30+
~/.cargo/registry
31+
~/.cargo/git
32+
target
33+
key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-cargo-${{ github.job }}-
36+
${{ runner.os }}-cargo-
37+
2738
- name: cargo fmt
2839
uses: actions-rs/cargo@v1
2940
with:
@@ -48,7 +59,6 @@ jobs:
4859
uses: actions-rs/toolchain@v1
4960
with:
5061
profile: minimal
51-
components: rustfmt, clippy
5262

5363
- uses: actions/cache@v2
5464
with:

0 commit comments

Comments
 (0)