fix(release): build the Linux CLI against musl
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:
4 files changed
+41
-13
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user