From e88a60b418746644f81da1640cdb3c3ac5f85f0d Mon Sep 17 00:00:00 2001 From: Predrag Gruevski Date: Fri, 6 Jan 2023 00:57:53 +0000 Subject: [PATCH] Use the Swatinem/rust-cache@v2 action for caching. --- .github/workflows/ci.yml | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf07637..ede393e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,15 +38,7 @@ jobs: profile: minimal override: true - - uses: actions/cache@v2 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - uses: Swatinem/rust-cache@v2 - name: cargo clippy uses: actions-rs/clippy-check@v1 @@ -75,15 +67,7 @@ jobs: toolchain: stable profile: minimal - - uses: actions/cache@v2 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - uses: Swatinem/rust-cache@v2 - name: compile run: cargo test --no-run