From 3479aa5bff5f3b931aa2f843bae11071f02e90fb Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 31 Jul 2022 15:52:01 +0200 Subject: [PATCH] Add separate CI job with clang tidy --- .gitlab-ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b56c011392..d0c3752fb1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -261,17 +261,29 @@ Ubuntu_GCC_tests_coverage: Ubuntu_Clang: extends: .Ubuntu before_script: - - CI/install_debian_deps.sh clang clang-tidy openmw-deps openmw-deps-dynamic + - CI/install_debian_deps.sh clang openmw-deps openmw-deps-dynamic cache: - key: Ubuntu_Clang.ubuntu_22.04.v1 + key: Ubuntu_Clang.ubuntu_22.04.v2 variables: CC: clang CXX: clang++ - CI_CLANG_TIDY: 1 CCACHE_SIZE: 2G # When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks. timeout: 3h +Ubuntu_Clang_Tidy: + extends: Ubuntu_Clang + before_script: + - CI/install_debian_deps.sh clang clang-tidy openmw-deps openmw-deps-dynamic + cache: + key: Ubuntu_Clang_Tidy.ubuntu_22.04.v1 + variables: + CMAKE_BUILD_TYPE: Debug + CMAKE_CXX_FLAGS_DEBUG: -O0 + CI_CLANG_TIDY: 1 + # When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks. + timeout: 3h + .Ubuntu_Clang_tests: extends: Ubuntu_Clang cache: