Repository navigation
Use UPX filters when committing SDK package updates - #70
Merged
Merged
Conversation
Member
Author
|
Corresponding x86_64 PR: git-for-windows#137 |
mjcheetham
force-pushed
the
upx-workflow-integration
branch
from
November 3, 2026 11:30
f334d40 to
6e8a72a
Compare
Package-update jobs must configure the local UPX driver before staging files selected by filter=upx attributes. Otherwise Git can stage the original unpacked binaries instead of their compressed representation. Run the setup helper in configuration-only mode before git add, and stop if setup fails. Leave working-tree files untouched: package updates need clean filtering during staging, not a smudge refresh of the checkout. This prepares the shared commit helper for targeted LLVM attributes when Rust's LLVM binaries are introduced; it does not select any new files for compression. Assisted-by: GPT-6.1 Sol Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
UPX now supports Windows ARM64 binaries, so the workaround of installing x64 LLVM solely to strip oversized DLLs is no longer needed. Keep package-provided DLLs intact in the working tree. Compressed storage should use the clean filter for explicitly attributed LLVM binaries, rather than modifying every file above a size threshold. Assisted-by: GPT-6.1 Sol Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Rust's LLVM library needs compressed storage to fit remote file-size limits. Select that DLL explicitly for UPX clean/smudge filtering, leaving unrelated binaries untouched. Package-update automation configures the driver before staging, so original package bytes can remain in the working tree while Git stores the packed representation. Ordinary clones retain runnable packed binaries; users can opt in to unpacking after checkout. Add the attribute before introducing the package so its first generated commit stores the DLL through the clean filter. Assisted-by: GPT-6.1 Sol Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
mjcheetham
force-pushed
the
upx-workflow-integration
branch
from
November 4, 2026 14:14
6e8a72a to
8a8d3ca
Compare
mjcheetham
marked this pull request as ready for review
November 4, 2026 14:15
dscho
approved these changes
Nov 4, 2026
dscho
left a comment
Member
There was a problem hiding this comment.
Nice! I really like how the llvm-strip hack can now be retired.
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.
Summary
Prepare package-update automation to store Rust's LLVM DLL through the UPX clean filter, preserving original package bytes in the working tree.
.github/commit-sdk.sh, using--no-refresh.clangarm64/bin/libLLVM-22.dllwithfilter=upx.UPX now supports Windows ARM64 binaries, allowing explicitly selected LLVM DLLs to use compressed storage without stripping package files.
Ordinary clones retain runnable packed binaries. Users can optionally enable smudge filtering to trade disk space for faster loading.
Dependencies and follow-ups
Depends on #69; its commits appear here until that PR is merged.This does not install Rust or LLVM. Updating the package-install workflow on Rust PR #67 is a follow-up. No installation workflow has been dispatched.
Validation
Disposable repository tests verified setup runs before staging, successful commits leave working-tree bytes unchanged, and setup failure prevents staging and committing.
Attribute checks confirmed only the intended LLVM DLL is selected. Actionlint, shell syntax, and whitespace checks passed. Native ARM64 filter execution has not been tested locally.