mirror of
https://github.com/Swatinem/rust-cache
synced 2025-06-22 16:23:42 +00:00
Include CPU arch in the cache key (#228)
This commit is contained in:
parent
f0deed1e0e
commit
27b8ea9368
3 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue