Skip to content

Commit cc2d767

Browse files
authored
Update Rust directories recommended for caching (#433)
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
1 parent 2fa955d commit cc2d767

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,11 @@ whenever possible:
476476
- uses: actions/cache@v2
477477
with:
478478
path: |
479-
~/.cargo/registry
480-
~/.cargo/git
481-
target
479+
~/.cargo/bin/
480+
~/.cargo/registry/index/
481+
~/.cargo/registry/cache/
482+
~/.cargo/git/db/
483+
target/
482484
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
483485
```
484486

0 commit comments

Comments
 (0)