Add cachekey
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
7bd3610c5c
commit
b82764b518
1 changed files with 3 additions and 2 deletions
|
|
@ -27,6 +27,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: https://github.com/dtolnay/rust-toolchain@1.88
|
uses: https://github.com/dtolnay/rust-toolchain@1.88
|
||||||
|
id: toolchain
|
||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
- name: ⚡ Cache
|
- name: ⚡ Cache
|
||||||
|
|
@ -36,7 +37,7 @@ jobs:
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
~/.cargo/git
|
~/.cargo/git
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ steps.toolchain.outputs.cachekey }}
|
||||||
- run: cargo clippy -- -D warnings
|
- run: cargo clippy --all-targets -- -D warnings
|
||||||
- run: cargo build --verbose
|
- run: cargo build --verbose
|
||||||
- run: cargo test --verbose
|
- run: cargo test --verbose
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue