Unverified Commit 40b9536c authored by Zxilly's avatar Zxilly Committed by GitHub
Browse files

fix: add arch to cache key (#664)

parent 0a40ce6f
Loading
Loading
Loading
Loading
+1 −1
Changes for dist/cleanup/index.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -88116,7 +88116,7 @@ function computeCacheKey(packageManager, cacheDependencyPath) {
        if (!fileHash) {
            throw new Error(`No file in ${process.cwd()} matched to [${pattern}], make sure you have checked out the target repository`);
        }
        return `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${packageManager.id}-${fileHash}`;
        return `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${process.arch}-${packageManager.id}-${fileHash}`;
    });
}
/**
+12226 −12226

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Changes for src/cache.ts: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ async function computeCacheKey(
      `No file in ${process.cwd()} matched to [${pattern}], make sure you have checked out the target repository`
    );
  }
  return `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${packageManager.id}-${fileHash}`;
  return `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${process.arch}-${packageManager.id}-${fileHash}`;
}

/**