Update release.yml

This commit is contained in:
Alexey 2026-03-24 21:40:53 +03:00 committed by GitHub
parent 761679d306
commit 803c2c0492
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -72,13 +72,13 @@ jobs:
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
export CC=aarch64-linux-gnu-gcc export CC=aarch64-linux-gnu-gcc
export CXX=aarch64-linux-gnu-g++ export CXX=aarch64-linux-gnu-g++
export RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" export RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc -C lto=fat"
else else
export CC=clang export CC=clang
export CXX=clang++ export CXX=clang++
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld" export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld -C lto=fat"
fi fi
cargo build --release --target ${{ matrix.target }} cargo build --release --target ${{ matrix.target }}
- name: Package - name: Package
@ -177,13 +177,13 @@ jobs:
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-musl" ]; then if [ "${{ matrix.target }}" = "aarch64-unknown-linux-musl" ]; then
export CC=aarch64-linux-musl-gcc export CC=aarch64-linux-musl-gcc
export CC_aarch64_unknown_linux_musl=aarch64-linux-musl-gcc export CC_aarch64_unknown_linux_musl=aarch64-linux-musl-gcc
export RUSTFLAGS="-C target-feature=+crt-static -C linker=aarch64-linux-musl-gcc" export RUSTFLAGS="-C target-feature=+crt-static -C linker=aarch64-linux-musl-gcc -C lto=fat"
else else
export CC=musl-gcc export CC=musl-gcc
export CC_x86_64_unknown_linux_musl=musl-gcc export CC_x86_64_unknown_linux_musl=musl-gcc
export RUSTFLAGS="-C target-feature=+crt-static" export RUSTFLAGS="-C target-feature=+crt-static -C lto=fat"
fi fi
cargo build --release --target ${{ matrix.target }} cargo build --release --target ${{ matrix.target }}
- name: Package - name: Package