From 6f8ff66f2907a973936d868041d9b6b0534b599a Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Tue, 11 Oct 2022 13:22:30 +0200 Subject: [PATCH] Use proper action for Rust caching in CI --- .github/workflows/ci.yaml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 38ce4f0..b9fa78b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,20 +15,8 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - - name: Prepare cache key - run: | - cargo generate-lockfile - cp Cargo.lock cache-fingerprint - echo $RUSTFLAGS >> cache-fingerprint - echo $(rustc -V) >> cache-fingerprint - - name: Restore cargo cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('cache-fingerprint') }} + - name: Restore Cache + uses: Swatinem/rust-cache@v2 - name: Build run: cargo build - name: Run tests