Skip to content

Commit

Permalink
fix cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi committed Feb 23, 2024
1 parent 49b8710 commit d2d2217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
key: ${{ runner.os }}-client-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-check-${{ hashFiles('**/Cargo.lock') }}
- run: RUSTFLAGS="-D warnings" cargo check --all-targets
test:
runs-on: ubuntu-latest
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
key: ${{ runner.os }}-client-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }}
- run: cargo test
clippy:
runs-on: ubuntu-latest
Expand All @@ -37,7 +37,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
key: ${{ runner.os }}-client-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-clippy-${{ hashFiles('**/Cargo.lock') }}
- run: cargo clippy
fmt:
runs-on: ubuntu-latest
Expand All @@ -49,7 +49,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ~/.cargo/registry ~/.cargo/git target
key: ${{ runner.os }}-client-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-fmt-${{ hashFiles('**/Cargo.lock') }}
- run: cargo fmt --check
cspell:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d2d2217

Please sign in to comment.