Skip to content

ci: publish musl (Alpine) Linux release binaries - #22

Open
clemperorpenguin wants to merge 6 commits into
lemonade-sdk:lemonadefrom
clemperorpenguin:lemonade
Open

ci: publish musl (Alpine) Linux release binaries#22
clemperorpenguin wants to merge 6 commits into
lemonade-sdk:lemonadefrom
clemperorpenguin:lemonade

Conversation

@clemperorpenguin

@clemperorpenguin clemperorpenguin commented Jul 5, 2026

Copy link
Copy Markdown

Adds a musl/Alpine build to the release workflow so the Linux binaries run on musl-based distros (Alpine, etc.) without a glibc dependency. Produces bin-linux-musl-x86_64 and bin-linux-musl-vulkan-x86_64 release assets (plus aarch64), matching the existing glibc asset shapes.

Downstream consumer: lemonade-sdk/lemonade#2539, which selects these musl assets when running on a musl host.

# fork's original "track upstream" nightly behavior. A manual dispatch defaults
# to the llama_ref input (b9747) so a deliberate build matches lemonade's
# backend_versions.json pin.
LLAMA_REF: ${{ github.event.inputs.llama_ref }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't like this. The whole point of this is that we can eventually turn on newer ROCM builds in upstream llama.cpp and this repo goes away. If we have code like this that concept can never happen.

Comment on lines +599 to +607
# ========================================================================
# musl (Alpine) — CPU. Upstream ggml-org ships only glibc ("ubuntu") Linux
# builds, so lemonade pulls musl CPU/Vulkan binaries from this fork instead.
# The source is cloned on the (glibc) host but compiled inside an Alpine
# container so it links musl. libstdc++/libgcc are linked statically and
# OpenMP is disabled so the tarball is self-contained (only musl libc, and
# for Vulkan libvulkan, are needed at runtime).
# ========================================================================
linux-musl-cpu:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can you propose this to upstream llama.cpp too? I think that they need to be willing to do this too.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sure - sorry, I've been super busy, I'll get this caught up when I can and see about upstreaming these.

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