Skip to content

Commit 26e9858

Browse files
authored
Improve CI (#78)
1 parent 6428b41 commit 26e9858

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/checks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ jobs:
2525
matrix:
2626
action: [clippy, fmt, test]
2727
steps:
28-
- name: Setup build environment
29-
run: rustup toolchain install nightly --profile minimal
3028
- name: Fetch latest code
3129
uses: actions/checkout@v3
30+
- name: Setup build environment
31+
if: matrix.action != 'fmt'
32+
run: rustup show
3233
- uses: Swatinem/rust-cache@v2
34+
if: matrix.action != 'fmt'
3335
with:
3436
prefix-key: ${{ env.CACHE_VERSION }}
37+
key: ${{ matrix.action }}
3538
- name: Cargo clippy
3639
if: matrix.action == 'clippy'
3740
uses: actions-rs/clippy-check@v1

0 commit comments

Comments
 (0)