Github: Change CMake options for Linux release builds

Change CMake type to Release
Enable LTO and debug section compression
This commit is contained in:
Jonathan G Rennison
2023-02-20 20:25:24 +00:00
parent 97acdfaa05
commit 2a330961d4

View File

@@ -332,7 +332,9 @@ jobs:
echo "::group::CMake" echo "::group::CMake"
cmake ${GITHUB_WORKSPACE} \ cmake ${GITHUB_WORKSPACE} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=Release \
-DOPTION_COMPRESS_DEBUG=ON \
-DOPTION_LTO=ON \
-DOPTION_PACKAGE_DEPENDENCIES=ON \ -DOPTION_PACKAGE_DEPENDENCIES=ON \
# EOF # EOF
echo "::endgroup::" echo "::endgroup::"
@@ -446,7 +448,9 @@ jobs:
echo "::group::CMake" echo "::group::CMake"
CXX=${{ matrix.compiler }} CC=${{ matrix.c_compiler }} cmake ${GITHUB_WORKSPACE} \ 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 \ -DCMAKE_INSTALL_PREFIX=/usr \
# EOF # EOF
echo "::endgroup::" echo "::endgroup::"