Repository navigation
build(ci): switch Linux release binaries to musl static linking - #56
Merged
Merged
Conversation
- Change x86_64/aarch64 Linux release targets from gnu to musl to produce fully static binaries with no glibc dependency - Add strip step in CI Package job to reduce binary size (~27MB → ~22MB) - Add binutils-aarch64-linux-gnu install step for aarch64 strip support - Add build-musl / build-aarch64-musl / build-all-musl targets to memoria/Makefile for local cross-compilation (mirrors CI exactly); aarch64 uses a separate CARGO_TARGET_DIR to avoid glibc cache conflicts between native and cross builds - Update Cross.toml target section to aarch64-unknown-linux-musl - Update install scripts (scripts/install.sh, plugins/openclaw/scripts/install-openclaw-memoria.sh) to resolve correct musl target triple when downloading release binaries - Update README.md and skills/setup/SKILL.md download examples Made-with: Cursor
aptend
force-pushed
the
build/musl-static-binary
branch
from
March 19, 2026 10:22
832f7b9 to
9942d8c
Compare
aptend
enabled auto-merge (squash)
March 19, 2026 10:24
aptend
disabled auto-merge
March 19, 2026 10:28
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 type of PR is this?
Which issue(s) this PR fixes
Fixes #
What this PR does / why we need it
Switch Linux release binaries from dynamically-linked glibc (
-gnu) tofully static musl (
-musl), eliminating glibc version compatibility issues.Problem
The
x86_64-unknown-linux-gnubinary compiled onubuntu-latest(glibc 2.39)cannot run on older systems (e.g. CentOS 7 / glibc 2.17, Ubuntu 20.04 / glibc 2.31).
Verified locally:
No OpenSSL changes needed — project already uses
rustls+reqwest/rustls-tls.Changes
release-rust.yml): change Linux targets tox86_64-unknown-linux-musland
aarch64-unknown-linux-musl; addstripstep (binary: ~27 MB → ~22 MB);install
binutils-aarch64-linux-gnufor aarch64 strip supportaarch64-unknown-linux-muslmemoria/Makefile): addbuild-musl,build-aarch64-musl,build-all-musltargets for local cross-compilation mirroring CI;aarch64 uses
CARGO_TARGET_DIR=target/crossto avoid glibc cache conflictsbetween native and
crossbuildsresolve_targetinscripts/install.shandplugins/openclaw/scripts/install-openclaw-memoria.shto use musl tripleREADME.mdandskills/setup/SKILL.mddownload examples