From aa692808fdd47956843fef408dfaebd8d81776fd Mon Sep 17 00:00:00 2001 From: Stanislav Pastushenko Date: Wed, 10 Dec 2025 21:56:34 +0100 Subject: [PATCH] guitea build --- .gitea/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 4ac9119..e742683 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -62,14 +62,13 @@ jobs: - name: Build release binary run: | - # Define the flag to tell the linker to disable debug section compression - RUSTFLAGS="-C link-arg=-Wl,--compress-debug-sections=none" - if [ "${{ matrix.platform }}" = "macos" ]; then + # macOS uses cargo-zigbuild cargo zigbuild --release --target ${{ matrix.target }} else - # Prepend RUSTFLAGS to the cargo build command - ${RUSTFLAGS} cargo build --release --target ${{ matrix.target }} + # Linux/Windows targets (running in the Rust container) + # Apply RUSTFLAGS inline to fix the Alpine/Musl linker issue + RUSTFLAGS="-C link-arg=-Wl,--compress-debug-sections=none" cargo build --release --target ${{ matrix.target }} fi - name: Prepare artifact