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

This commit is contained in:
2025-12-10 21:56:34 +01:00
parent b648bf9dbe
commit aa692808fd

View File

@@ -62,14 +62,13 @@ jobs:
- name: Build release binary - name: Build release binary
run: | 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 if [ "${{ matrix.platform }}" = "macos" ]; then
# macOS uses cargo-zigbuild
cargo zigbuild --release --target ${{ matrix.target }} cargo zigbuild --release --target ${{ matrix.target }}
else else
# Prepend RUSTFLAGS to the cargo build command # Linux/Windows targets (running in the Rust container)
${RUSTFLAGS} cargo build --release --target ${{ matrix.target }} # 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 fi
- name: Prepare artifact - name: Prepare artifact