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

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.
This commit is contained in:
fristy committed 2026-11-17 16:06:00 +03:00
1 parent d4e9a5c092
commit d6ab83fc2e
4 files changed
+41 -13

No files matched your search

+8 -2
View File
@@ -140,8 +140,7 @@ jobs:
cli-arm64:
name: CLI (linux-arm64, static)
runs-on: ubuntu-latest
timeout-minutes: 45
continue-on-error: true
timeout-minutes: 60
steps:
- uses: actions/checkout@v7
@@ -156,6 +155,13 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-arm64-check-
- name: Add the static Linux targets
run: rustup target add x86_64-unknown-linux-musl
- name: Cross-compile for arm64
working-directory: cli
run: cargo zigbuild --target aarch64-unknown-linux-musl --no-default-features
- name: Cross-compile for x86-64
working-directory: cli
run: cargo zigbuild --target x86_64-unknown-linux-musl