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
|
||||
- name: Install Rust
|
||||
uses: https://github.com/dtolnay/rust-toolchain@1.88
|
||||
id: toolchain
|
||||
with:
|
||||
components: clippy
|
||||
- name: ⚡ Cache
|
||||
|
|
@ -36,7 +37,7 @@ jobs:
|
|||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- run: cargo clippy -- -D warnings
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ steps.toolchain.outputs.cachekey }}
|
||||
- run: cargo clippy --all-targets -- -D warnings
|
||||
- run: cargo build --verbose
|
||||
- run: cargo test --verbose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue