different cache for each step
All checks were successful
Cargo / check (push) Successful in 1m25s
Cargo / build (push) Successful in 2m50s
Cargo / test (push) Successful in 2m48s

This commit is contained in:
2025-07-18 14:25:21 +01:00
parent 97b621c5e9
commit c129ff53a9

View File

@ -16,10 +16,10 @@ jobs:
path: |
$HOME/.cargo/registry
target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-target
${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-build-target
- name: Build project
uses: actions-rs/cargo@v1
with:
@ -37,10 +37,10 @@ jobs:
path: |
$HOME/.cargo/registry
target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-cargo-check-target-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-target
${{ runner.os }}-cargo-check-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-check-target
- name: Run clippy
uses: actions-rs/cargo@v1
with:
@ -58,10 +58,10 @@ jobs:
path: |
$HOME/.cargo/registry
target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-cargo-test-target-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-target
${{ runner.os }}-cargo-test-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-test-target
- name: Run unit tests
uses: actions-rs/cargo@v1
with: