Skip to content

linux musl native#249

Merged
prabhu merged 4 commits into
mainfrom
feature/linux-musl-native
May 28, 2026
Merged

linux musl native#249
prabhu merged 4 commits into
mainfrom
feature/linux-musl-native

Conversation

@prabhu

@prabhu prabhu commented May 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

prabhu added 2 commits May 28, 2026 14:57
…se automation

- Introduce ci/native-image-musl.sh for building musl-linked binaries via containerized GraalVM
- Update build.sbt to enable musl builds via ATOM_GRAALVM_LIBC env var
- Extend release.yml with jobs for linux-musl-amd64 and linux-musl-arm64 artifacts, including UPX compression and verification
- Improve native-image.sh documentation and fix license echo formatting

Signed-off-by: Prabhu Subramanian <[email protected]>
Copilot AI review requested due to automatic review settings May 28, 2026 10:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for building and releasing Linux musl (statically-linked, Alpine-compatible) native-image binaries of atom for amd64 (and arm64, currently disabled), via a new containerized build script and two new release jobs. Also tweaks the existing native-image script's license echo.

Changes:

  • New ci/native-image-musl.sh helper that builds the native image inside a ghcr.io/graalvm/native-image-community:25-muslib container (auto-detects nerdctl/docker/podman), with caching, GITHUB_TOKEN handling, and optional Alpine-based binary verification.
  • New release-linux-musl-amd64 and (disabled) release-linux-musl-arm64 jobs in release.yml that build via the new script, UPX-compress, verify in Alpine, push to GHCR via ORAS, and attach to GitHub Releases on tags.
  • Minor edit in ci/native-image.sh: removed a blank line and replaced curly quotes around “Classpath” with straight " quotes (which inadvertently breaks the shell quoting of the echo string).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
ci/native-image.sh Cosmetic edits; the curly→straight quote change breaks the surrounding echo quoting.
ci/native-image-musl.sh New container-based musl native-image build script.
.github/workflows/release.yml Adds musl amd64 release job and a disabled musl arm64 job following existing ORAS/GHCR patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ci/native-image.sh
Comment thread ci/native-image-musl.sh Outdated
Comment thread ci/native-image-musl.sh Outdated
Comment thread .github/workflows/release.yml
@prabhu prabhu merged commit 66435b6 into main May 28, 2026
10 of 37 checks passed
@prabhu prabhu deleted the feature/linux-musl-native branch May 28, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants