3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-27 05:35:53 +00:00

clean and persist the git db/checkouts

This commit is contained in:
Arpad Borsos 2020-10-05 18:17:03 +02:00
parent e8e3c57b3b
commit b740ae5d3a
4 changed files with 178 additions and 60 deletions

View file

@ -54618,7 +54618,7 @@ const home = external_os_default().homedir();
const paths = {
index: external_path_default().join(home, ".cargo/registry/index"),
cache: external_path_default().join(home, ".cargo/registry/cache"),
git: external_path_default().join(home, ".cargo/git/db"),
git: external_path_default().join(home, ".cargo/git"),
target: "target",
};
const RefKey = "GITHUB_REF";
@ -54642,12 +54642,7 @@ async function getCacheConfig() {
}
key += await getRustKey();
return {
paths: [
paths.index,
paths.cache,
// TODO: paths.git,
paths.target,
],
paths: [paths.index, paths.cache, paths.git, paths.target],
key: `${key}-${lockHash}`,
restoreKeys: [key],
};