3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-27 13:45:52 +00:00

Include CPU arch in the cache key

This commit is contained in:
rhysd 2025-02-07 23:22:36 +09:00
parent f0deed1e0e
commit c9582041b2
3 changed files with 9 additions and 6 deletions

5
dist/save/index.js vendored
View file

@ -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