Skip to content

Commit

Permalink
Don't use Zstandard bundles on Windows
Browse files Browse the repository at this point in the history
In testing, gzip performs better than Zstandard on Windows.
  • Loading branch information
henrymercer committed Oct 10, 2024
1 parent 9d1e406 commit eefb943
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/__zstd-bundle-fallback.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .github/workflows/__zstd-bundle.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion lib/setup-codeql.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/setup-codeql.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion pr-checks/checks/zstd-bundle-fallback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ versions:
- linked
operatingSystems:
- macos
- windows
- ubuntu
env:
CODEQL_ACTION_ZSTD_BUNDLE: true
Expand Down
1 change: 0 additions & 1 deletion pr-checks/checks/zstd-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ versions:
- linked
operatingSystems:
- macos
- windows
- ubuntu
env:
CODEQL_ACTION_ZSTD_BUNDLE: true
Expand Down
2 changes: 2 additions & 0 deletions src/setup-codeql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,8 @@ async function useZstdBundle(
tarSupportsZstd: boolean,
): Promise<boolean> {
return (
// In testing, gzip performs better than zstd on Windows.
process.platform !== "win32" &&
tarSupportsZstd &&
semver.gte(cliVersion, CODEQL_VERSION_ZSTD_BUNDLE) &&
!!(await features.getValue(Feature.ZstdBundle))
Expand Down

0 comments on commit eefb943

Please sign in to comment.