Ensure disk-cache is disabled by default
This commit is contained in:
parent
eac8baa3a8
commit
596e834564
5 changed files with 14 additions and 8 deletions
|
|
@ -30,12 +30,14 @@ const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}`
|
||||||
const bazelrc = core.getMultilineInput('bazelrc')
|
const bazelrc = core.getMultilineInput('bazelrc')
|
||||||
|
|
||||||
const diskCacheConfig = core.getInput('disk-cache')
|
const diskCacheConfig = core.getInput('disk-cache')
|
||||||
const diskCacheEnabled = diskCacheConfig.length > 0
|
const diskCacheEnabled = diskCacheConfig !== 'false'
|
||||||
let diskCacheName = 'disk'
|
let diskCacheName = 'disk'
|
||||||
if (diskCacheEnabled) {
|
if (diskCacheEnabled) {
|
||||||
bazelrc.push(`build --disk_cache=${bazelDisk}`)
|
bazelrc.push(`build --disk_cache=${bazelDisk}`)
|
||||||
|
if (diskCacheName !== 'true') {
|
||||||
diskCacheName = `${diskCacheName}-${diskCacheConfig}`
|
diskCacheName = `${diskCacheName}-${diskCacheConfig}`
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const repositoryCacheEnabled = core.getBooleanInput('repository-cache')
|
const repositoryCacheEnabled = core.getBooleanInput('repository-cache')
|
||||||
if (repositoryCacheEnabled) {
|
if (repositoryCacheEnabled) {
|
||||||
|
|
|
||||||
4
dist/main/index.js
vendored
4
dist/main/index.js
vendored
|
|
@ -36,12 +36,14 @@ const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}`
|
||||||
const bazelrc = core.getMultilineInput('bazelrc')
|
const bazelrc = core.getMultilineInput('bazelrc')
|
||||||
|
|
||||||
const diskCacheConfig = core.getInput('disk-cache')
|
const diskCacheConfig = core.getInput('disk-cache')
|
||||||
const diskCacheEnabled = diskCacheConfig.length > 0
|
const diskCacheEnabled = diskCacheConfig !== 'false'
|
||||||
let diskCacheName = 'disk'
|
let diskCacheName = 'disk'
|
||||||
if (diskCacheEnabled) {
|
if (diskCacheEnabled) {
|
||||||
bazelrc.push(`build --disk_cache=${bazelDisk}`)
|
bazelrc.push(`build --disk_cache=${bazelDisk}`)
|
||||||
|
if (diskCacheName !== 'true') {
|
||||||
diskCacheName = `${diskCacheName}-${diskCacheConfig}`
|
diskCacheName = `${diskCacheName}-${diskCacheConfig}`
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const repositoryCacheEnabled = core.getBooleanInput('repository-cache')
|
const repositoryCacheEnabled = core.getBooleanInput('repository-cache')
|
||||||
if (repositoryCacheEnabled) {
|
if (repositoryCacheEnabled) {
|
||||||
|
|
|
||||||
2
dist/main/index.js.map
vendored
2
dist/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/post/index.js
vendored
4
dist/post/index.js
vendored
|
|
@ -36,12 +36,14 @@ const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}`
|
||||||
const bazelrc = core.getMultilineInput('bazelrc')
|
const bazelrc = core.getMultilineInput('bazelrc')
|
||||||
|
|
||||||
const diskCacheConfig = core.getInput('disk-cache')
|
const diskCacheConfig = core.getInput('disk-cache')
|
||||||
const diskCacheEnabled = diskCacheConfig.length > 0
|
const diskCacheEnabled = diskCacheConfig !== 'false'
|
||||||
let diskCacheName = 'disk'
|
let diskCacheName = 'disk'
|
||||||
if (diskCacheEnabled) {
|
if (diskCacheEnabled) {
|
||||||
bazelrc.push(`build --disk_cache=${bazelDisk}`)
|
bazelrc.push(`build --disk_cache=${bazelDisk}`)
|
||||||
|
if (diskCacheName !== 'true') {
|
||||||
diskCacheName = `${diskCacheName}-${diskCacheConfig}`
|
diskCacheName = `${diskCacheName}-${diskCacheConfig}`
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const repositoryCacheEnabled = core.getBooleanInput('repository-cache')
|
const repositoryCacheEnabled = core.getBooleanInput('repository-cache')
|
||||||
if (repositoryCacheEnabled) {
|
if (repositoryCacheEnabled) {
|
||||||
|
|
|
||||||
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue