Skip to content

Commit

Permalink
fix cache paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi committed Feb 23, 2024
1 parent 287f8a0 commit 81bafb1
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-check-${{ hashFiles('**/Cargo.lock') }}
- run: RUSTFLAGS="-D warnings" cargo check --all-targets
- run: RUSTFLAGS="-D warnings" cargo check --all-targets --features trace
Expand All @@ -26,7 +29,10 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }}
- run: cargo test
- run: cargo test --release --features _fuzz --test fuzz
Expand All @@ -39,7 +45,10 @@ jobs:
components: rustfmt
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-fmt-${{ hashFiles('**/Cargo.lock') }}
- run: cargo fmt --check
bench:
Expand All @@ -49,7 +58,10 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-bench-${{ hashFiles('**/Cargo.lock') }}
- run: cargo bench
cspell:
Expand Down

0 comments on commit 81bafb1

Please sign in to comment.