different cache for each step
This commit is contained in:
@ -16,10 +16,10 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
$HOME/.cargo/registry
|
$HOME/.cargo/registry
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
|
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
|
${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}
|
||||||
${{ runner.os }}-cargo-target
|
${{ runner.os }}-cargo-build-target
|
||||||
- name: Build project
|
- name: Build project
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
@ -37,10 +37,10 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
$HOME/.cargo/registry
|
$HOME/.cargo/registry
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
|
key: ${{ runner.os }}-cargo-check-target-${{ hashFiles('**/Cargo.toml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
|
${{ runner.os }}-cargo-check-target-${{ hashFiles('**/Cargo.toml') }}
|
||||||
${{ runner.os }}-cargo-target
|
${{ runner.os }}-cargo-check-target
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
@ -58,10 +58,10 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
$HOME/.cargo/registry
|
$HOME/.cargo/registry
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
|
key: ${{ runner.os }}-cargo-test-target-${{ hashFiles('**/Cargo.toml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
|
${{ runner.os }}-cargo-test-target-${{ hashFiles('**/Cargo.toml') }}
|
||||||
${{ runner.os }}-cargo-target
|
${{ runner.os }}-cargo-test-target
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user