Skip to content

Commit 2ef4f0e

Browse files
authored
fix(ci): cache correctly in "Check formatting" and "Run clippy" (#190)
* remove unnecessary cache * reorder caching so it has effect
1 parent b0397ce commit 2ef4f0e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747
components: rustfmt
4848
- name: Check formatting
4949
run: cargo fmt --check --all
50-
- name: Cache Cargo dependencies
51-
uses: Swatinem/rust-cache@v2
5250

5351
clippy:
5452
name: Run clippy (${{ matrix.project.name }})
@@ -125,12 +123,12 @@ jobs:
125123
- uses: actions/checkout@v6
126124
- name: Install Rust
127125
uses: dtolnay/rust-toolchain@stable
126+
- name: Cache Cargo dependencies
127+
uses: Swatinem/rust-cache@v2
128128
- name: Run lib tests
129129
run: cargo test --locked --lib --all-features
130130
- name: Run doctests
131131
run: cargo test --locked -p mousefood --doc
132-
- name: Cache Cargo dependencies
133-
uses: Swatinem/rust-cache@v2
134132

135133
build-no-std:
136134
name: build [no-std] ${{ matrix.target }} ${{ matrix.toolchain }}

0 commit comments

Comments
 (0)