Files
toolkit/packages/cache/src/internal/constants.ts
T

27 lines
850 B
TypeScript
Raw Normal View History

export enum CacheFilename {
Gzip = 'cache.tgz',
Zstd = 'cache.tzst'
}
export enum CompressionMethod {
Gzip = 'gzip',
2020-05-19 12:38:45 -04:00
// Long range mode was added to zstd in v1.3.2.
// This enum is for earlier version of zstd that does not have --long support
ZstdWithoutLong = 'zstd-without-long',
Zstd = 'zstd'
}
2020-10-12 13:21:01 -05:00
// The default number of retry attempts.
export const DefaultRetryAttempts = 2
2020-08-17 15:32:04 -05:00
// The default delay in milliseconds between retry attempts.
2020-10-12 13:21:01 -05:00
export const DefaultRetryDelay = 5000
2020-08-17 15:32:04 -05:00
// Socket timeout in milliseconds during download. If no traffic is received
// over the socket during this period, the socket is destroyed and the download
// is aborted.
export const SocketTimeout = 5000
2022-11-17 07:26:52 +00:00
// The default path of GNUtar on hosted Windows runners
2022-11-17 07:34:07 +00:00
export const GnuTarPathOnWindows = `${process.env['PROGRAMFILES']}\\Git\\usr\\bin\\tar.exe`