release: compress linux/darwin archives with xz -9e (smaller downloads) - #4162
Merged
Conversation
…ptimal on windows The linux and darwin release archives were plain gzip (level 6) tarballs at ~85 MB each. Switch them to xz -9e, which shrinks a stripped skywire binary's archive by ~13-14% vs gzip with no other change: gzip -6 (old): 89.5 MB xz -9e: 77.3 MB (-13.6%) zstd -19: 80.3 MB (-10.3%) xz -9e wins on ratio and its decompressor is near-universal, so it is preferred over zstd here. The tar is piped through the xz CLI (not tar -J) so the -9e level is honored identically on GNU tar (linux) and bsdtar (macOS). xz-utils is added to the linux job deps. The .sha256 sidecars, artifact globs and release upload lists move to the new .tar.xz extension. Windows Compress-Archive is raised to -CompressionLevel Optimal (smaller win, no new tooling). The rolling develop-latest/master-latest .zst binary-updater channel (publish-binary.yml) and the wasm-visor tinygo module archive are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The linux and darwin release archives are plain gzip (level 6) tarballs, ~85 MB each. Switching them to
xz -9eshrinks a strippedskywirebinary's archive by ~13-14% vs gzip, with no other change:xz -9ewins on ratio and its decompressor is near-universal, so it's preferred over zstd here. The tar is piped through thexzCLI (rather thantar -J) so the-9elevel is applied identically on GNU tar (linux) and bsdtar (macOS);xz-utilsis added to the linux job deps. The.sha256sidecars, artifact globs and release-upload file lists move to.tar.xz. WindowsCompress-Archiveis raised to-CompressionLevel Optimal(smaller win, no new tooling).Consumer of the archives — the AUR
skywire-binPKGBUILD — is updated in the AUR repo separately. The rollingdevelop-latest/master-latest.zstbinary-updater channel (publish-binary.yml) and the wasm-visor tinygo module archive are intentionally left unchanged.Extension change (
.tar.gz->.tar.xz) applies only tov*tagged releases, which is the only thing release.yml runs for.