guitea build
Some checks failed
Build / Build - linux (push) Failing after 6m29s

This commit is contained in:
2025-12-10 22:05:36 +01:00
parent aa692808fd
commit d9625c7fdd

View File

@@ -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