From d9625c7fdd0757137b248d05e97a6cd7cc0e52d5 Mon Sep 17 00:00:00 2001 From: Stanislav Pastushenko Date: Wed, 10 Dec 2025 22:05:36 +0100 Subject: [PATCH] guitea build --- .gitea/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index e742683..f822b88 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -63,12 +63,10 @@ jobs: - name: Build release binary run: | if [ "${{ matrix.platform }}" = "macos" ]; then - # macOS uses cargo-zigbuild cargo zigbuild --release --target ${{ matrix.target }} else - # 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 }} + # Define RUSTFLAGS to use the system linker (cc) and disable debug compression + RUSTFLAGS="-C linker=cc -C link-arg=-Wl,--compress-debug-sections=none" cargo build --release --target ${{ matrix.target }} fi - name: Prepare artifact