From b11a7677416430ffe2dd83dbbd08c078c39d7a91 Mon Sep 17 00:00:00 2001 From: Vladislav Yaroslavlev Date: Thu, 19 Feb 2026 09:43:31 +0300 Subject: [PATCH] ci: add musl build targets for static Linux binaries --- .github/workflows/release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec0e68d..bbf1b00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,10 +25,16 @@ jobs: include: - target: x86_64-unknown-linux-gnu artifact_name: telemt - asset_name: telemt-x86_64-linux + asset_name: telemt-x86_64-linux-gnu - target: aarch64-unknown-linux-gnu artifact_name: telemt - asset_name: telemt-aarch64-linux + asset_name: telemt-aarch64-linux-gnu + - target: x86_64-unknown-linux-musl + artifact_name: telemt + asset_name: telemt-x86_64-linux-musl + - target: aarch64-unknown-linux-musl + artifact_name: telemt + asset_name: telemt-aarch64-linux-musl steps: - name: Checkout repository @@ -60,6 +66,8 @@ jobs: run: cargo install cross --git https://github.com/cross-rs/cross - name: Build Release + env: + RUSTFLAGS: ${{ contains(matrix.target, 'musl') && '-C target-feature=+crt-static' || '' }} run: cross build --release --target ${{ matrix.target }} - name: Package binary