Build ARM64 musl release in Alpine#2
Closed
frankmanzhu wants to merge 3 commits into
Closed
Conversation
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.
What changed
scripts/package-release-alpine.shto packageaarch64-unknown-linux-muslinside an ARM64 Alpine Rust container.build-base,cmake,binutils,file,pkgconf, andpython3for a real musl C/C++ build environment.ZM_USE_SYSTEM_MUSL_TOOLCHAIN=1path inscripts/package-release.shso the Alpine build uses systemcc/c++/arinstead of Zig.Why
The Linux ARM64 musl package build failed when
sha2-asmcompiled its AArch64.Ssource through the Zig wrapper. This tries a native ARM64 Alpine musl environment instead, preserving the SHA2 assembly path and avoiding a software fallback unless this approach still fails.Validation
bash -n scripts/package-release.sh scripts/package-release-alpine.shcargo test -p zmanager-cli --test help_cli linux_release_artifacts_are_static_tarballscargo tree --locked --target aarch64-unknown-linux-musl -i sha2-asmconfirmssha2-asmremains in the ARM64 musl dependency tree.Full release packaging is intentionally left for GitHub Actions on the ARM64 runner.