Skip to content

Commit fd583d4

Browse files
committed
Invoke rust dependency caching after setting up rustc
* Add caching for clippy step * de-duplicate CI actions
1 parent 203a43a commit fd583d4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,13 @@ jobs:
2525
with:
2626
token: ${{ secrets.GITHUB_TOKEN }}
2727
submodules: recursive
28-
- uses: Swatinem/rust-cache@v1
2928
- uses: actions-rs/toolchain@v1
3029
with:
3130
toolchain: ${{ matrix.rust }}
3231
override: true
32+
- uses: Swatinem/rust-cache@v1
3333
- run: sudo apt-get update -y
3434
if: matrix.os == 'ubuntu-latest'
35-
- uses: actions-rs/toolchain@v1
36-
with:
37-
toolchain: ${{ matrix.rust }}
38-
override: true
3935
- name: cargo check
4036
run: cargo check
4137
- name: cargo check examples
@@ -80,6 +76,7 @@ jobs:
8076
profile: minimal
8177
toolchain: stable
8278
override: true
79+
- uses: Swatinem/rust-cache@v1
8380
- run: rustup component add clippy
8481
- name: clippy (all targets)
8582
run: cargo clippy --all-targets --all-features -- -D warnings

0 commit comments

Comments
 (0)