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 d2d2217 commit 6ba9d5c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 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
test:
Expand All @@ -24,7 +27,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
clippy:
Expand All @@ -36,7 +42,10 @@ jobs:
components: clippy
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-clippy-${{ hashFiles('**/Cargo.lock') }}
- run: cargo clippy
fmt:
Expand All @@ -46,10 +55,6 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
key: ${{ runner.os }}-fmt-${{ hashFiles('**/Cargo.lock') }}
- run: cargo fmt --check
cspell:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6ba9d5c

Please sign in to comment.