Skip to content

Commit

Permalink
Update Rust directories recommended for caching (#433)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Alex Tokarev authored and GitHub committed May 21, 2021
1 parent 2fa955d commit cc2d767
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,11 @@ whenever possible:
- 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') }}
```

Expand Down

0 comments on commit cc2d767

Please sign in to comment.