Skip to content

Commit

Permalink
Use the Swatinem/rust-cache@v2 action for caching. (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi authored Jan 6, 2023
1 parent 3336405 commit 759cacc
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,7 @@ jobs:
profile: minimal
override: true

- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: Swatinem/rust-cache@v2

- name: cargo clippy
uses: actions-rs/clippy-check@v1
Expand Down Expand Up @@ -75,15 +67,7 @@ jobs:
toolchain: stable
profile: minimal

- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: Swatinem/rust-cache@v2

- name: compile
run: cargo test --no-run
Expand Down

0 comments on commit 759cacc

Please sign in to comment.