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:
Alex Tokarev 2020-10-13 19:18:44 +03:00 committed by GitHub
parent d1255ad936
commit 6bba3db48b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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') }}
```