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