mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 21:15:36 +00:00
Add GCC Debug job
To build code with enabled assertions but disable symbols to make it faster.
This commit is contained in:
parent
48ddcda992
commit
c51d949d1e
2 changed files with 19 additions and 1 deletions
|
@ -100,6 +100,21 @@ Ubuntu_GCC:
|
||||||
# When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
|
# When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
|
||||||
timeout: 2h
|
timeout: 2h
|
||||||
|
|
||||||
|
Ubuntu_GCC_Debug:
|
||||||
|
extends: .Ubuntu
|
||||||
|
cache:
|
||||||
|
key: Ubuntu_GCC_Debug.ubuntu_22.04.v1
|
||||||
|
before_script:
|
||||||
|
- CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic
|
||||||
|
variables:
|
||||||
|
CC: gcc
|
||||||
|
CXX: g++
|
||||||
|
CCACHE_SIZE: 4G
|
||||||
|
CMAKE_BUILD_TYPE: Debug
|
||||||
|
CMAKE_CXX_FLAGS_DEBUG: -O0
|
||||||
|
# When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
|
||||||
|
timeout: 2h
|
||||||
|
|
||||||
Ubuntu_GCC_tests:
|
Ubuntu_GCC_tests:
|
||||||
extends: Ubuntu_GCC
|
extends: Ubuntu_GCC
|
||||||
cache:
|
cache:
|
||||||
|
|
|
@ -24,7 +24,6 @@ declare -a CMAKE_CONF_OPTS=(
|
||||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
||||||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||||
-DCMAKE_INSTALL_PREFIX=install
|
-DCMAKE_INSTALL_PREFIX=install
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
||||||
-DBUILD_SHARED_LIBS=OFF
|
-DBUILD_SHARED_LIBS=OFF
|
||||||
-DUSE_SYSTEM_TINYXML=ON
|
-DUSE_SYSTEM_TINYXML=ON
|
||||||
-DOPENMW_USE_SYSTEM_RECASTNAVIGATION=ON
|
-DOPENMW_USE_SYSTEM_RECASTNAVIGATION=ON
|
||||||
|
@ -52,6 +51,10 @@ if [[ "${CMAKE_BUILD_TYPE}" ]]; then
|
||||||
CMAKE_CONF_OPTS+=(
|
CMAKE_CONF_OPTS+=(
|
||||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||||
)
|
)
|
||||||
|
else
|
||||||
|
CMAKE_CONF_OPTS+=(
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${CMAKE_CXX_FLAGS_DEBUG}" ]]; then
|
if [[ "${CMAKE_CXX_FLAGS_DEBUG}" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue