different cache for each step
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user