From 339d4fc5d2c0c93c73e902f1893ff197f465113e Mon Sep 17 00:00:00 2001 From: chaodu-agent Date: Sun, 28 Jun 2026 02:21:10 -0400 Subject: [PATCH] fix: use musl targets for Linux builds (static linking) --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44ffd0d..313f33b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,8 @@ jobs: strategy: matrix: include: - - { target: x86_64-unknown-linux-gnu, runner: ubuntu-latest, os: linux, arch: x64, ext: "", archive: tar.gz } - - { target: aarch64-unknown-linux-gnu, runner: ubuntu-24.04-arm, os: linux, arch: arm64, ext: "", archive: tar.gz } + - { target: x86_64-unknown-linux-musl, runner: ubuntu-latest, os: linux, arch: x64, ext: "", archive: tar.gz } + - { target: aarch64-unknown-linux-musl, runner: ubuntu-24.04-arm, os: linux, arch: arm64, ext: "", archive: tar.gz } - { target: x86_64-apple-darwin, runner: macos-latest, os: darwin, arch: x64, ext: "", archive: tar.gz } - { target: aarch64-apple-darwin, runner: macos-latest, os: darwin, arch: arm64, ext: "", archive: tar.gz } runs-on: ${{ matrix.runner }} @@ -62,6 +62,10 @@ jobs: with: targets: ${{ matrix.target }} + - name: Install musl tools + if: contains(matrix.target, 'musl') + run: sudo apt-get update && sudo apt-get install -y musl-tools + - uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.target }}