3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-03-20 15:15:51 +00:00

pretty printing and fix workspace package retrieval

This commit is contained in:
Arpad Borsos 2022-07-09 15:51:45 +02:00
parent 36af5cb1ae
commit 827b33fbd0
No known key found for this signature in database
GPG key ID: FC7BCA77824B3298
6 changed files with 29 additions and 13 deletions

View file

@ -26,12 +26,13 @@ async function run() {
core.exportVariable("CARGO_INCREMENTAL", 0);
const config = await CacheConfig.new();
config.printInfo();
core.info("");
const bins = await config.getCargoBins();
core.saveState(STATE_BINS, JSON.stringify([...bins]));
core.info(`# Restoring cache`);
config.printInfo();
core.info(`... Restoring cache ...`);
const key = config.cacheKey;
const restoreKey = await cache.restoreCache(config.cachePaths, key, [config.restoreKey]);
if (restoreKey) {