update readme

This commit is contained in:
Arpad Borsos 2020-11-21 12:21:26 +01:00
parent da5df52d2f
commit fb2efae33d
1 changed files with 8 additions and 2 deletions

View File

@ -15,6 +15,7 @@ The cache currently caches the following directories:
- `~/.cargo/registry/index`
- `~/.cargo/registry/cache`
- `~/.cargo/git`
- `./target`
This cache is automatically keyed by:
@ -31,5 +32,10 @@ In particular, no caching of workspace crates will be done. For
this reason, this action will automatically set `CARGO_INCREMENTAL=0` to
disable incremental compilation.
**TODO**: The `~/.cargo/git/db` database is not yet persisted, support will be
added at a later point.
The action will try to restore from a previous `Cargo.lock` version as well, so
lockfile updates should only re-build changed dependencies.
Additionally, the action automatically works around
[cargo#8603](https://github.com/rust-lang/cargo/issues/8603) /
[actions/cache#403](https://github.com/actions/cache/issues/403) which would
otherwise corrupt the cache on macOS builds.