From fb2efae33d7a675046cc79df067f86e5c4ea330b Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Sat, 21 Nov 2020 12:21:26 +0100 Subject: [PATCH] update readme --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a81149c..acd802d 100644 --- a/README.md +++ b/README.md @@ -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.