Upgrade to latest version of @actons/cache (with -L patch)
This commit is contained in:
parent
596e834564
commit
91e634d3e9
9 changed files with 7 additions and 42 deletions
14
dist/main/index.js
vendored
14
dist/main/index.js
vendored
|
|
@ -124,8 +124,7 @@ module.exports = {
|
|||
name: 'repository',
|
||||
paths: [bazelRepository]
|
||||
},
|
||||
token: core.getInput('token'),
|
||||
useGnuTarOnWindows: core.getBooleanInput('use-gnu-tar-on-windows')
|
||||
token: core.getInput('token')
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -74518,7 +74517,6 @@ async function setupBazel () {
|
|||
await setupBazelrc()
|
||||
core.endGroup()
|
||||
|
||||
await useGnuTarOnWindows()
|
||||
await restoreCache(config.bazeliskCache)
|
||||
await restoreCache(config.diskCache)
|
||||
await restoreCache(config.repositoryCache)
|
||||
|
|
@ -74536,16 +74534,6 @@ async function setupBazelrc () {
|
|||
}
|
||||
}
|
||||
|
||||
// https://github.com/actions/cache/blob/main/tips-and-workarounds.md#improving-cache-restore-performance-on-windowsusing-cross-os-caching
|
||||
async function useGnuTarOnWindows () {
|
||||
if (config.useGnuTarOnWindows && config.platform === 'win32') {
|
||||
if (config.bazeliskCache.enabled || config.diskCache.enabled ||
|
||||
config.repositoryCache.enabled || config.externalCache.enabled) {
|
||||
core.addPath('C:\\Program Files\\Git\\usr\\bin')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function restoreExternalCaches (cacheConfig) {
|
||||
if (!cacheConfig.enabled) {
|
||||
return
|
||||
|
|
|
|||
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
Loading…
Add table
Add a link
Reference in a new issue