Skip to content

Commit

Permalink
Use rust-cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed May 15, 2022
1 parent ac611fc commit 76d849b
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,7 @@ jobs:
toolchain: stable
override: true

# Caching setup
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: Swatinem/rust-cache@v1

- name: Build
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 76d849b

Please sign in to comment.