Browse Source

ci: Replace actions/cache with Swatinem/rust-cache

This slightly simplifies the CI configuration, and the rust-cache action
is widely used.
Nicholas Bishop 1 month ago
parent
commit
6aa8f0f247
1 changed files with 2 additions and 9 deletions
  1. 2 9
      .github/workflows/ci.yml

+ 2 - 9
.github/workflows/ci.yml

@@ -25,15 +25,6 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
-      - uses: actions/cache@v4
-        with:
-          path: |
-            ~/.cargo/bin
-            ~/.cargo/registry
-            ~/.cargo/git
-            ~/.cargo/.crates.toml
-            target
-          key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
 
       - name: Install latest nightly
         uses: dtolnay/rust-toolchain@nightly
@@ -42,6 +33,8 @@ jobs:
           targets: thumbv7m-none-eabi
           components: rustfmt, clippy
 
+      - uses: Swatinem/rust-cache@v2
+
       - run: cargo fmt --check
       - run: cargo test
       - run: cargo clippy --all-features