From 4a37e8e09e1818992dda25f700f1a647d276c19e Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 14 May 2023 01:27:45 +0200 Subject: [PATCH] ci: Enable LTO project-wide --- .github/workflows/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13fa425d..e993588c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -141,7 +141,8 @@ jobs: -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/build/ci/install" \ -DPACKAGE_NAME="streamfx-${{ matrix.package_name }}" \ -DPACKAGE_PREFIX="${{ github.workspace }}/build/package" \ - -DCMAKE_PREFIX_PATH="${{ github.workspace }}/build/obs/install;${{ github.workspace }}/build/qt;${{ github.workspace }}/build/obsdeps" + -DCMAKE_PREFIX_PATH="${{ github.workspace }}/build/obs/install;${{ github.workspace }}/build/qt;${{ github.workspace }}/build/obsdeps" \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON - name: "Build: Debug" continue-on-error: true shell: bash @@ -285,7 +286,8 @@ jobs: -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/build/ci/install" \ -DPACKAGE_NAME="streamfx-${{ matrix.package_name }}" \ -DPACKAGE_PREFIX="${{ github.workspace }}/build/package" \ - -DCMAKE_PREFIX_PATH="${{ github.workspace }}/build/obs/install;${{ github.workspace }}/build/qt;${{ github.workspace }}/build/obsdeps" + -DCMAKE_PREFIX_PATH="${{ github.workspace }}/build/obs/install;${{ github.workspace }}/build/qt;${{ github.workspace }}/build/obsdeps" \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON - name: "Build: Debug" continue-on-error: true shell: bash @@ -463,7 +465,8 @@ jobs: -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/build/ci/install" \ -DPACKAGE_NAME="streamfx-${{ env.PACKAGE_NAME }}" \ -DPACKAGE_PREFIX="${{ github.workspace }}/build/package" \ - -Dlibobs_DIR="${{ github.workspace }}/build/obs/install" + -Dlibobs_DIR="${{ github.workspace }}/build/obs/install" \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON - name: "Build: Debug" continue-on-error: true shell: bash