feat: use Swatinem/rust-cache to cache builds

This commit is contained in:
oSumAtrIX 2022-10-08 02:51:41 +02:00 committed by GitHub
parent 7acd911842
commit cda1bcb03f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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