mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-11 04:41:31 +02:00
Add hash of Cargo.lock to keys of caches
This commit is contained in:
parent
9dd57f4d18
commit
d6264c17f8
1 changed files with 3 additions and 3 deletions
|
@ -64,17 +64,17 @@ See [Examples](examples.md)
|
|||
uses: actions/cache@preview
|
||||
with:
|
||||
path: ~/.cargo/registry
|
||||
key: ${{ runner.os }}-cargo-registry
|
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Cache cargo index
|
||||
uses: actions/cache@preview
|
||||
with:
|
||||
path: ~/.cargo/git
|
||||
key: ${{ runner.os }}-cargo-index
|
||||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Cache cargo build
|
||||
uses: actions/cache@preview
|
||||
with:
|
||||
path: target
|
||||
key: ${{ runner.os }}-cargo-build-target
|
||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
||||
```
|
||||
|
||||
## Cache Limits
|
||||
|
|
Loading…
Add table
Reference in a new issue