Upgrade to latest version of @actons/cache (with -L patch)

This commit is contained in:
Alex Rodionov 2023-01-09 14:30:16 -08:00
parent 596e834564
commit 91e634d3e9
9 changed files with 7 additions and 42 deletions

14
dist/main/index.js vendored
View file

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

File diff suppressed because one or more lines are too long