mirror of
https://github.com/Swatinem/rust-cache
synced 2025-06-23 00:33:42 +00:00
add logging
This commit is contained in:
parent
3faf29c29b
commit
3c291936b0
2 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,8 @@ async function restoreIncrementalProfile(dirName: string) {
|
||||||
const contents = await fs.promises.readFile(incrementalJson, "utf8");
|
const contents = await fs.promises.readFile(incrementalJson, "utf8");
|
||||||
const { modifiedTimes } = JSON.parse(contents);
|
const { modifiedTimes } = JSON.parse(contents);
|
||||||
|
|
||||||
|
core.debug(`restoring incremental profile directory "${dirName}" with ${modifiedTimes} files`);
|
||||||
|
|
||||||
// Write the mtimes to all the files in the profile directory
|
// Write the mtimes to all the files in the profile directory
|
||||||
for (const fileName of Object.keys(modifiedTimes)) {
|
for (const fileName of Object.keys(modifiedTimes)) {
|
||||||
const mtime = modifiedTimes[fileName];
|
const mtime = modifiedTimes[fileName];
|
||||||
|
|
|
@ -50,6 +50,7 @@ async function run() {
|
||||||
core.info(`${lookupOnly ? "Found" : "Restored from"} cache key "${restoreKey}" full match: ${match}.`);
|
core.info(`${lookupOnly ? "Found" : "Restored from"} cache key "${restoreKey}" full match: ${match}.`);
|
||||||
|
|
||||||
if (config.incremental) {
|
if (config.incremental) {
|
||||||
|
core.debug("restoring incremental builds");
|
||||||
for (const workspace of config.workspaces) {
|
for (const workspace of config.workspaces) {
|
||||||
await restoreIncremental(workspace.target);
|
await restoreIncremental(workspace.target);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue