Only stream installing the bundle on Linux

This commit is contained in:
Henry Mercer 2024-10-22 22:05:49 +01:00
parent e5048f5d84
commit 972eba1b90
3 changed files with 3 additions and 1 deletions

1
lib/tools-download.js generated
View file

@ -58,6 +58,7 @@ async function downloadAndExtract(codeqlURL, authorization, headers, tarVersion,
logger.info(`Downloading CodeQL tools from ${codeqlURL} . This may take a while.`);
const compressionMethod = tar.inferCompressionMethod(codeqlURL);
if (compressionMethod === "zstd" &&
process.platform === "linux" &&
(await features.getValue(feature_flags_1.Feature.ZstdBundleStreamingExtraction))) {
logger.info(`Streaming the extraction of the CodeQL bundle.`);
const toolsInstallStart = perf_hooks_1.performance.now();