fix(release): build the Linux CLI against musl #20

Merged
fristy merged 1 commits from ci/static-linux-cli into main 2026-11-17 16:12:55 +03:00
Collaborator

📋 Description

frislit-linux-x64 is built on the Ubuntu 26.10 runner image, so the released binary required
glibc 2.44 and refused to start on anything older — for example an Ubuntu 26.04 server, which ships
glibc 2.43. The Linux CLI now cross-compiles to musl with the zig toolchain that runner-images
already ships, which removes the glibc dependency entirely and keeps the desktop GUI in the
.deb/.rpm.

The ARM64 job no longer hides its own failures: continue-on-error is gone, the release publish
step waits for it, and both Linux jobs assert that the produced binary is statically linked.

Verification, run inside git.fristy.net/actions/runner-images:ubuntu-latest:

  • cargo zigbuild --release --target x86_64-unknown-linux-musl → statically linked, and the
    binary runs (frislit --version).
  • cargo zigbuild --release --target aarch64-unknown-linux-musl --no-default-features →
    statically linked.
  • nfpm pkg --config packaging/nfpm-cli.yaml --packager deb → the package builds and carries no
    Depends line, matching the static binary.

🚀 Changes made to ...

  • 🔧 Server
  • 🖥️ Client
  • ⌨️ CLI
  • 📚 Documentation
  • 🔄 Other: release pipeline and packaging metadata

✅ Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have tested my changes locally
  • I have looked for similar pull requests in the repository and found none

🔗 Related Issues

No issue: this was found while installing the 0.3.2 frislit-linux-x64 asset on Ubuntu 26.04,
where the installer succeeds and the binary then fails with GLIBC_2.44 not found.

## 📋 Description `frislit-linux-x64` is built on the Ubuntu 26.10 runner image, so the released binary required glibc 2.44 and refused to start on anything older — for example an Ubuntu 26.04 server, which ships glibc 2.43. The Linux CLI now cross-compiles to `musl` with the zig toolchain that `runner-images` already ships, which removes the glibc dependency entirely and keeps the desktop GUI in the `.deb`/`.rpm`. The ARM64 job no longer hides its own failures: `continue-on-error` is gone, the release publish step waits for it, and both Linux jobs assert that the produced binary is statically linked. Verification, run inside `git.fristy.net/actions/runner-images:ubuntu-latest`: - `cargo zigbuild --release --target x86_64-unknown-linux-musl` → `statically linked`, and the binary runs (`frislit --version`). - `cargo zigbuild --release --target aarch64-unknown-linux-musl --no-default-features` → `statically linked`. - `nfpm pkg --config packaging/nfpm-cli.yaml --packager deb` → the package builds and carries no `Depends` line, matching the static binary. ## 🚀 Changes made to ... - [ ] 🔧 Server - [ ] 🖥️ Client - [ ] ⌨️ CLI - [ ] 📚 Documentation - [x] 🔄 Other: release pipeline and packaging metadata ## ✅ Checklist - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have tested my changes locally - [x] I have looked for similar pull requests in the repository and found none ## 🔗 Related Issues No issue: this was found while installing the 0.3.2 `frislit-linux-x64` asset on Ubuntu 26.04, where the installer succeeds and the binary then fails with `GLIBC_2.44 not found`.
fristyagent added 1 commit 2026-11-17 16:06:41 +03:00
fix(release): build the Linux CLI against musl
CI / Docker image (pull_request) Successful in 17s
CI / CLI (pull_request) Successful in 18s
CI / Server (pull_request) Successful in 25s
CI / CLI (windows) (pull_request) Successful in 3m6s
CI / CLI (linux-arm64, static) (pull_request) Successful in 5m38s
d6ab83fc2e
The x86-64 artifact was built on the 26.10 runner image and required glibc 2.44,
so it failed on older distributions. Build both Linux targets statically with
the image's zig toolchain and fail the job when the result is not static.
fristy merged commit 3c712d3d30 into main 2026-11-17 16:12:55 +03:00
fristy deleted branch ci/static-linux-cli 2026-11-17 16:12:55 +03:00
Sign in to join this conversation.