mirror of
https://github.com/Swatinem/rust-cache
synced 2025-04-13 15:48:43 +00:00
add runner OS in cache key (#220)
This commit is contained in:
parent
c00f3025ca
commit
9a2e0d3212
3
dist/restore/index.js
vendored
3
dist/restore/index.js
vendored
|
@ -77314,6 +77314,9 @@ class CacheConfig {
|
||||||
key += `-${job}`;
|
key += `-${job}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add runner OS to the key to avoid cross-contamination of cache
|
||||||
|
const runnerOS = external_os_default().type();
|
||||||
|
key += `-${runnerOS}`;
|
||||||
self.keyPrefix = key;
|
self.keyPrefix = key;
|
||||||
// Construct environment portion of the key:
|
// Construct environment portion of the key:
|
||||||
// This consists of a hash that considers the rust version
|
// This consists of a hash that considers the rust version
|
||||||
|
|
3
dist/save/index.js
vendored
3
dist/save/index.js
vendored
|
@ -77314,6 +77314,9 @@ class CacheConfig {
|
||||||
key += `-${job}`;
|
key += `-${job}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add runner OS to the key to avoid cross-contamination of cache
|
||||||
|
const runnerOS = external_os_default().type();
|
||||||
|
key += `-${runnerOS}`;
|
||||||
self.keyPrefix = key;
|
self.keyPrefix = key;
|
||||||
// Construct environment portion of the key:
|
// Construct environment portion of the key:
|
||||||
// This consists of a hash that considers the rust version
|
// This consists of a hash that considers the rust version
|
||||||
|
|
|
@ -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;
|
self.keyPrefix = key;
|
||||||
|
|
||||||
// Construct environment portion of the key:
|
// Construct environment portion of the key:
|
||||||
|
|
Loading…
Reference in a new issue