Github: Change CMake options for Linux release builds
Change CMake type to Release Enable LTO and debug section compression
This commit is contained in:
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@@ -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::"
|
||||||
|
Reference in New Issue
Block a user