From c51d949d1ea188e0ed27b24ed0d76dfe4b1610dc Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 31 Jul 2022 13:49:52 +0200 Subject: [PATCH] Add GCC Debug job To build code with enabled assertions but disable symbols to make it faster. --- .gitlab-ci.yml | 15 +++++++++++++++ CI/before_script.linux.sh | 5 ++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 417d4b9c63..b56c011392 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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. 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: extends: Ubuntu_GCC cache: diff --git a/CI/before_script.linux.sh b/CI/before_script.linux.sh index 9fce76b7e8..4b7b14f367 100755 --- a/CI/before_script.linux.sh +++ b/CI/before_script.linux.sh @@ -24,7 +24,6 @@ declare -a CMAKE_CONF_OPTS=( -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=install - -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=OFF -DUSE_SYSTEM_TINYXML=ON -DOPENMW_USE_SYSTEM_RECASTNAVIGATION=ON @@ -52,6 +51,10 @@ if [[ "${CMAKE_BUILD_TYPE}" ]]; then CMAKE_CONF_OPTS+=( -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ) +else + CMAKE_CONF_OPTS+=( + -DCMAKE_BUILD_TYPE=RelWithDebInfo + ) fi if [[ "${CMAKE_CXX_FLAGS_DEBUG}" ]]; then