mirror of
https://github.com/actions/cache.git
synced 2025-03-13 11:47:00 +00:00
Update Rust directories recommended for caching
This commit applies the suggestion from The Cargo Book: https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
This commit is contained in:
parent
d1255ad936
commit
6bba3db48b
1 changed files with 5 additions and 3 deletions
|
@ -453,9 +453,11 @@ When dependencies are installed later in the workflow, we must specify the same
|
|||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue