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`.
This commit is contained in:
Malte Poll 2025-08-05 15:42:41 +02:00 committed by GitHub
parent 20a70d3f31
commit 54c9086be8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -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')

2
dist/main/index.js vendored
View file

@ -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')

2
dist/post/index.js vendored
View file

@ -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')