Skip to content

Commit

Permalink
feat: use Swatinem/rust-cache to cache builds
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 8, 2022
1 parent 7acd911 commit cda1bcb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cda1bcb

Please sign in to comment.