This commit is contained in:
@@ -63,12 +63,10 @@ jobs:
|
|||||||
- name: Build release binary
|
- name: Build release binary
|
||||||
run: |
|
run: |
|
||||||
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
|
||||||
# Linux/Windows targets (running in the Rust container)
|
# Define RUSTFLAGS to use the system linker (cc) and disable debug compression
|
||||||
# Apply RUSTFLAGS inline to fix the Alpine/Musl linker issue
|
RUSTFLAGS="-C linker=cc -C link-arg=-Wl,--compress-debug-sections=none" cargo build --release --target ${{ matrix.target }}
|
||||||
RUSTFLAGS="-C link-arg=-Wl,--compress-debug-sections=none" cargo build --release --target ${{ matrix.target }}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Prepare artifact
|
- name: Prepare artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user