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
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) {