From 2a330961d469fa766430ed54aecf96dfbbfd9d0f Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 20 Feb 2023 20:25:24 +0000 Subject: [PATCH] Github: Change CMake options for Linux release builds Change CMake type to Release Enable LTO and debug section compression --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da473c5302..1f444a289e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -332,7 +332,9 @@ jobs: echo "::group::CMake" cmake ${GITHUB_WORKSPACE} \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_BUILD_TYPE=Release \ + -DOPTION_COMPRESS_DEBUG=ON \ + -DOPTION_LTO=ON \ -DOPTION_PACKAGE_DEPENDENCIES=ON \ # EOF echo "::endgroup::" @@ -446,7 +448,9 @@ jobs: echo "::group::CMake" CXX=${{ matrix.compiler }} CC=${{ matrix.c_compiler }} cmake ${GITHUB_WORKSPACE} \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_BUILD_TYPE=Release \ + -DOPTION_COMPRESS_DEBUG=ON \ + -DOPTION_LTO=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ # EOF echo "::endgroup::"