From 4ddddf2a3574bf010ab6c5223cbb32e8f525ebc1 Mon Sep 17 00:00:00 2001 From: silverqx Date: Tue, 4 Jun 2024 13:29:29 +0200 Subject: [PATCH] workflows added LTO - to msvc/linux drivers matrix --- .github/workflows/linux-qt6-drivers.yml | 21 +++++++++++++++++++++ .github/workflows/msvc2022-qt6-drivers.yml | 10 ++++++++++ 2 files changed, 31 insertions(+) diff --git a/.github/workflows/linux-qt6-drivers.yml b/.github/workflows/linux-qt6-drivers.yml index 63e8d431b..dddfbcd9a 100644 --- a/.github/workflows/linux-qt6-drivers.yml +++ b/.github/workflows/linux-qt6-drivers.yml @@ -34,6 +34,8 @@ jobs: strategy: matrix: + lto: [ OFF ] + drivers-type: [ Shared, Loadable, Static ] build-type: @@ -50,6 +52,25 @@ jobs: - key: gcc13 command: g++-13 + include: + - lto: ON + drivers-type: Loadable + build-type: + key: release + name: Release + compiler: + key: clang18 + command: clang++-18 + + - lto: ON + drivers-type: Loadable + build-type: + key: release + name: Release + compiler: + key: gcc13 + command: g++-13 + steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/msvc2022-qt6-drivers.yml b/.github/workflows/msvc2022-qt6-drivers.yml index ee9f8ad16..94e10cc29 100644 --- a/.github/workflows/msvc2022-qt6-drivers.yml +++ b/.github/workflows/msvc2022-qt6-drivers.yml @@ -33,6 +33,8 @@ jobs: strategy: matrix: + lto: [ OFF ] + drivers-type: [ Shared, Loadable, Static ] build-type: @@ -42,6 +44,13 @@ jobs: - key: release name: Release + include: + - lto: ON + drivers-type: Loadable + build-type: + key: release + name: Release + steps: - uses: actions/checkout@v4 with: @@ -231,6 +240,7 @@ jobs: -D CMAKE_EXPORT_PACKAGE_REGISTRY:BOOL=OFF -D CMAKE_BUILD_TYPE:STRING=${{ matrix.build-type.name }} -D CMAKE_CXX_SCAN_FOR_MODULES:BOOL=OFF + -D CMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=${{ matrix.lto }} -D VCPKG_APPLOCAL_DEPS:BOOL=OFF -D VERBOSE_CONFIGURE:BOOL=ON -D BUILD_TREE_DEPLOY:BOOL=ON