From f8ba8fc186c3f3825f137f23c5dd062270abbf08 Mon Sep 17 00:00:00 2001 From: messense Date: Sat, 30 Nov 2024 13:59:43 +0800 Subject: [PATCH] Enable fat LTO for maturin release workflow --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b95e58816..78ae7cecc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,6 +57,8 @@ jobs: os: windows-latest name: maturin-aarch64-pc-windows-msvc.zip runs-on: ${{ matrix.os }} + env: + CARGO_PROFILE_RELEASE_LTO: "fat" steps: # Largely inspired by https://github.com/starship/starship/blob/35a0a20f5c4fea6a08e1b91ff631b089eef8fc50/.github/workflows/deploy.yml - uses: actions/checkout@v4 @@ -167,6 +169,7 @@ jobs: env: RUSTUP_HOME: /root/.rustup CARGO_HOME: /root/.cargo + CARGO_PROFILE_RELEASE_LTO: "fat" steps: - uses: actions/checkout@v4 # powerpc64le-unknown-linux-musl doesn't have official std library release