From 17d1ba66a5e2902580a993ee64fbe4ff1e969b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Wed, 26 Feb 2025 17:34:36 +0100 Subject: [PATCH] LTO --- .github/workflows/linux_cli.yml | 1 + .github/workflows/linux_cli_eyra.yml | 1 + .github/workflows/linux_gui.yml | 4 ++++ .github/workflows/mac.yml | 2 ++ .github/workflows/windows.yml | 2 ++ 5 files changed, 10 insertions(+) diff --git a/.github/workflows/linux_cli.yml b/.github/workflows/linux_cli.yml index 186b53fb..13b9b856 100644 --- a/.github/workflows/linux_cli.yml +++ b/.github/workflows/linux_cli.yml @@ -21,6 +21,7 @@ jobs: run: rustup default 1.85.0 - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Build Release with fast_image_resize diff --git a/.github/workflows/linux_cli_eyra.yml b/.github/workflows/linux_cli_eyra.yml index 2a0f3fe0..b061e609 100644 --- a/.github/workflows/linux_cli_eyra.yml +++ b/.github/workflows/linux_cli_eyra.yml @@ -29,6 +29,7 @@ jobs: cd .. - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Build Release diff --git a/.github/workflows/linux_gui.yml b/.github/workflows/linux_gui.yml index a604d0f0..56798d36 100644 --- a/.github/workflows/linux_gui.yml +++ b/.github/workflows/linux_gui.yml @@ -18,6 +18,7 @@ jobs: run: rustup default 1.85.0 - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Build Release Krokiet @@ -53,6 +54,7 @@ jobs: run: rustup default 1.85.0 - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Build Release Krokiet heif @@ -88,6 +90,7 @@ jobs: run: rustup default 1.85.0 - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Build Release Heif Libraw @@ -133,6 +136,7 @@ jobs: run: rustup default 1.85.0 - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Build Release diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 0b9b15d0..b265a288 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -27,6 +27,7 @@ jobs: run: rustup default 1.85.0 - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i '' 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Build Release @@ -124,6 +125,7 @@ jobs: run: rustup default 1.85.0 - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i '' 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Build Release diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6514c1f2..4ece2c56 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -28,6 +28,7 @@ jobs: rustup target add x86_64-pc-windows-gnu - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Compile Krokiet @@ -90,6 +91,7 @@ jobs: run: rustup default 1.85.0-x86_64-pc-windows-gnu - name: Enable LTO + if: ${{ github.ref == 'refs/heads/master' }} run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml - name: Compile Krokiet