1
0
Fork 0

Temporarily remove thhe condition that prevents zstd usage on windows unless with GNUtar

bishal-change
Lovepreet Singh 2022-11-17 12:13:49 +00:00
parent b3bd482c0f
commit f9dfb05bd2
1 changed files with 4 additions and 4 deletions

View File

@ -94,10 +94,10 @@ async function getVersion(app: string): Promise<string> {
// Use zstandard if possible to maximize cache performance
export async function getCompressionMethod(): Promise<CompressionMethod> {
if (process.platform === 'win32' && !(await getGnuTarPathOnWindows())) {
// Disable zstd due to bug https://github.com/actions/cache/issues/301
return CompressionMethod.Gzip
}
// if (process.platform === 'win32' && !(await getGnuTarPathOnWindows())) {
// // Disable zstd due to bug https://github.com/actions/cache/issues/301
// return CompressionMethod.Gzip
// }
const versionOutput = await getVersion('zstd')
const version = semver.clean(versionOutput)