1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-20 03:46:17 +02:00

Complete Rust documentation for Windows and Linux

This commit is contained in:
evandrocoan 2020-03-22 22:36:16 -03:00
parent eb78578266
commit aa13bab6d2

View file

@ -376,7 +376,15 @@ When dependencies are installed later in the workflow, we must specify the same
## Rust - Cargo
The following example is for Linux. For Windows, rust replace `~/.cargo` by `C:\Rust\.cargo`.
Also, do forget to change `**/Cargo.lock` to `**/Cargo.toml` if your project uses the former.
See [Cargo.toml vs Cargo.lock](https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html) for more information.
Note, on Windows, you should also use forward slash ``**/Cargo.lock`` instead of backslash ``**\Cargo.lock``.
```yaml
# Necessary for now for the cargo cache:
# https://github.com/actions/cache/issues/133#issuecomment-599102035
- name: Fix ~/.cargo directory permissions
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
- name: Cache cargo registry
uses: actions/cache@v1
with: