diff --git a/sources/src/caching/cache-key.ts b/sources/src/caching/cache-key.ts index 48501d7b..e4a42a3c 100644 --- a/sources/src/caching/cache-key.ts +++ b/sources/src/caching/cache-key.ts @@ -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 {