diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a973db..858b65c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,14 +28,10 @@ jobs: override: true components: clippy - - name: Cache - uses: actions/cache@v3 - id: cache + - name: Set up cache + uses: Swatinem/rust-cache@v2 with: - path: | - ~/.cargo/registry/cache/ - target/ - key: ${{ steps.rust-toolchain.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }} + cache-on-failure: "true" - name: cargo build uses: actions-rs/cargo@v1