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

View file

@ -21,7 +21,6 @@ async function setupBazel () {
await setupBazelrc()
core.endGroup()
await useGnuTarOnWindows()
await restoreCache(config.bazeliskCache)
await restoreCache(config.diskCache)
await restoreCache(config.repositoryCache)
@ -39,16 +38,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