mirror of
https://github.com/gradle/actions.git
synced 2025-04-20 09:49:19 +08:00
Include RUNNER_ARCH in cache key
Previously, including RUNNER_OS was enough to prevent leaking incompatible content between Gradle User Homes. With the introduction of macos-14, we now need to differentiate between different runner architectures as well. Fixes #138
This commit is contained in:
parent
46308b920a
commit
e6688f31b8
@ -73,7 +73,8 @@ export function getCacheKeyBase(cacheName: string, cacheProtocolVersion: string)
|
||||
|
||||
function getCacheKeyEnvironment(): string {
|
||||
const runnerOs = process.env['RUNNER_OS'] || ''
|
||||
return process.env[CACHE_KEY_OS_VAR] || runnerOs
|
||||
const runnerArch = process.env['RUNNER_ARCH'] || ''
|
||||
return process.env[CACHE_KEY_OS_VAR] || `${runnerOs}-${runnerArch}`
|
||||
}
|
||||
|
||||
function getCacheKeyJob(): string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user