From 333b82eb80e256c442f303ed11b5419d8b27f02b Mon Sep 17 00:00:00 2001 From: Igor Lins e Silva <4753812+igorls@users.noreply.github.com> Date: Mon, 12 Oct 2026 18:28:21 -0300 Subject: [PATCH 1/3] ci: build static musl release binaries (x86_64, aarch64) --- .github/workflows/release.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acd6842..a8810fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ on: env: CARGO_TERM_COLOR: always - EXPECTED_RELEASE_ARTIFACTS: 5 + EXPECTED_RELEASE_ARTIFACTS: 7 permissions: contents: read @@ -35,6 +35,15 @@ jobs: - target: aarch64-unknown-linux-gnu os: ubuntu-24.04-arm archive: tar.gz + # Static musl builds: the gnu binaries need glibc >= 2.34, so they do + # not start on Alpine or older distributions. install.sh picks these + # automatically there. + - target: x86_64-unknown-linux-musl + os: ubuntu-latest + archive: tar.gz + - target: aarch64-unknown-linux-musl + os: ubuntu-24.04-arm + archive: tar.gz - target: x86_64-apple-darwin os: macos-latest archive: tar.gz @@ -54,6 +63,10 @@ jobs: with: targets: ${{ matrix.target }} + - name: Install musl toolchain + if: contains(matrix.target, 'musl') + run: sudo apt-get update && sudo apt-get install -y musl-tools + - name: Cache cargo registry uses: actions/cache@v6 with: @@ -64,7 +77,14 @@ jobs: key: ${{ runner.os }}-${{ matrix.target }}-release-${{ hashFiles('**/Cargo.lock') }} - name: Build release binary - run: cargo build --release --target ${{ matrix.target }} --features tree-sitter-all + shell: bash + run: | + # The tree-sitter grammars are C: compile them with musl's compiler. + if [[ "${{ matrix.target }}" == *-musl ]]; then + target_env="${{ matrix.target }}" + export "CC_${target_env//-/_}=musl-gcc" + fi + cargo build --release --target ${{ matrix.target }} --features tree-sitter-all - name: Package (Unix) if: matrix.archive == 'tar.gz' From bd88dd672639669077d30cb1d53497c34762d206 Mon Sep 17 00:00:00 2001 From: Igor Lins e Silva <4753812+igorls@users.noreply.github.com> Date: Tue, 13 Oct 2026 00:05:31 -0300 Subject: [PATCH 2/3] ci: retrigger coverage From 21b27c957a7487463d6b04da6567bacee8d983e5 Mon Sep 17 00:00:00 2001 From: Igor Lins e Silva <4753812+igorls@users.noreply.github.com> Date: Tue, 13 Oct 2026 00:22:04 -0300 Subject: [PATCH 3/3] ci: retrigger coverage (2)