3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-15 00:28:43 +00:00

add logging

This commit is contained in:
Jonathan Kelley 2025-01-28 18:22:39 -08:00
parent 3faf29c29b
commit 3c291936b0
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE
2 changed files with 3 additions and 0 deletions

View file

@ -38,6 +38,8 @@ async function restoreIncrementalProfile(dirName: string) {
const contents = await fs.promises.readFile(incrementalJson, "utf8");
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
for (const fileName of Object.keys(modifiedTimes)) {
const mtime = modifiedTimes[fileName];

View file

@ -50,6 +50,7 @@ async function run() {
core.info(`${lookupOnly ? "Found" : "Restored from"} cache key "${restoreKey}" full match: ${match}.`);
if (config.incremental) {
core.debug("restoring incremental builds");
for (const workspace of config.workspaces) {
await restoreIncremental(workspace.target);
}