Skip to content

Commit 6aa8f0f

Browse files
ci: Replace actions/cache with Swatinem/rust-cache
This slightly simplifies the CI configuration, and the rust-cache action is widely used.
1 parent 76513b5 commit 6aa8f0f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v4
28-
- uses: actions/cache@v4
29-
with:
30-
path: |
31-
~/.cargo/bin
32-
~/.cargo/registry
33-
~/.cargo/git
34-
~/.cargo/.crates.toml
35-
target
36-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
3728

3829
- name: Install latest nightly
3930
uses: dtolnay/rust-toolchain@nightly
@@ -42,6 +33,8 @@ jobs:
4233
targets: thumbv7m-none-eabi
4334
components: rustfmt, clippy
4435

36+
- uses: Swatinem/rust-cache@v2
37+
4538
- run: cargo fmt --check
4639
- run: cargo test
4740
- run: cargo clippy --all-features

0 commit comments

Comments
 (0)