From ff5506b4f8184503ab079b5d2be272f0eab656da Mon Sep 17 00:00:00 2001 From: broisnees Date: Tue, 17 Nov 2026 17:12:38 +0000 Subject: [PATCH] Go back to fat LTO for Nightly builds Thin LTO with 16 codegen units made the Nightly build slower, not faster: 2.18.7 took 44 minutes against the usual 20 to 24. --- .github/workflows/nightly.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0ecd3e58..f0689f35 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -160,13 +160,6 @@ jobs: shell: bash run: npx tauri build --config nightly.conf.json ${{ matrix.args }} env: - # Nightly trades a little binary size and speed for build time. The - # release profile's fat LTO with one codegen unit re-optimizes the - # whole dependency graph on one thread every build (~9 of the ~11 - # minutes, with every dependency already cached). Thin LTO keeps most - # of the gain and runs in parallel. Stable (release.yml) keeps fat LTO. - CARGO_PROFILE_RELEASE_LTO: thin - CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "16" TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} NO_STRIP: ${{ matrix.name == 'linux' && '1' || '' }}