diff --git a/dist/restore/index.js b/dist/restore/index.js index ea98ed12..d92653b5 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -86755,9 +86755,10 @@ class CacheConfig { key += `-${job}`; } } - // Add runner OS to the key to avoid cross-contamination of cache + // Add runner OS and CPU architecture to the key to avoid cross-contamination of cache const runnerOS = external_os_default().type(); - key += `-${runnerOS}`; + const runnerArch = external_os_default().arch(); + key += `-${runnerOS}-${runnerArch}`; self.keyPrefix = key; // Construct environment portion of the key: // This consists of a hash that considers the rust version diff --git a/dist/save/index.js b/dist/save/index.js index ea2ddfb9..b23f0814 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -86755,9 +86755,10 @@ class CacheConfig { key += `-${job}`; } } - // Add runner OS to the key to avoid cross-contamination of cache + // Add runner OS and CPU architecture to the key to avoid cross-contamination of cache const runnerOS = external_os_default().type(); - key += `-${runnerOS}`; + const runnerArch = external_os_default().arch(); + key += `-${runnerOS}-${runnerArch}`; self.keyPrefix = key; // Construct environment portion of the key: // This consists of a hash that considers the rust version diff --git a/src/config.ts b/src/config.ts index 5104f5c7..e5929167 100644 --- a/src/config.ts +++ b/src/config.ts @@ -74,9 +74,10 @@ export class CacheConfig { } } - // Add runner OS to the key to avoid cross-contamination of cache + // Add runner OS and CPU architecture to the key to avoid cross-contamination of cache const runnerOS = os.type(); - key += `-${runnerOS}`; + const runnerArch = os.arch(); + key += `-${runnerOS}-${runnerArch}`; self.keyPrefix = key;