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