Skip to content

Commit

Permalink
ci: changed caching action
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Jan 4, 2025
1 parent 37481b0 commit d0e6f89
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,7 @@ jobs:
with:
toolchain: 1.81.0
components: rustfmt, clippy
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ github.job }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-
- uses: Swatinem/rust-cache@v2
- run: cargo fetch --quiet
- name: Run linting checks
run: |
Expand All @@ -54,16 +43,5 @@ jobs:
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.81.0
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ github.job }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-
- uses: Swatinem/rust-cache@v2
- run: make ${{ matrix.test-type }}

0 comments on commit d0e6f89

Please sign in to comment.