From 54c9086be8a340fc5a516fb20af08b06cf2236ca Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Tue, 5 Aug 2025 15:42:41 +0200 Subject: [PATCH] Include architecture in cache key (#91) Otherwise, running tests on macos-13 and macos-15 uses the same cache key for Intel and Apple Silicon. Note: I had some trouble regenerating the `dist` without introducing huge changes in the output. For that reason I skipped updating `index.js.map`. --- config.js | 2 +- dist/main/index.js | 2 +- dist/post/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index 96fd5b1..13ca26f 100644 --- a/config.js +++ b/config.js @@ -46,7 +46,7 @@ switch (platform) { break } -const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}` +const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}-${arch}` const bazelrc = core.getMultilineInput('bazelrc') const diskCacheConfig = core.getInput('disk-cache') diff --git a/dist/main/index.js b/dist/main/index.js index 86f8af9..fef2ec3 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -52,7 +52,7 @@ switch (platform) { break } -const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}` +const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}-${arch}` const bazelrc = core.getMultilineInput('bazelrc') const diskCacheConfig = core.getInput('disk-cache') diff --git a/dist/post/index.js b/dist/post/index.js index 4506f86..90f070f 100644 --- a/dist/post/index.js +++ b/dist/post/index.js @@ -52,7 +52,7 @@ switch (platform) { break } -const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}` +const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}-${arch}` const bazelrc = core.getMultilineInput('bazelrc') const diskCacheConfig = core.getInput('disk-cache')