3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-29 06:35:53 +00:00

add runner OS in cache key (#220)

This commit is contained in:
Rano | Ranadeep 2024-12-09 22:32:01 +01:00 committed by GitHub
parent c00f3025ca
commit 9a2e0d3212
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View file

@ -71,6 +71,10 @@ export class CacheConfig {
}
}
// Add runner OS to the key to avoid cross-contamination of cache
const runnerOS = os.type();
key += `-${runnerOS}`;
self.keyPrefix = key;
// Construct environment portion of the key: