gitlab-ci: Add build with clang

This commit is contained in:
Andreas Schneider 2022-03-13 09:24:46 +01:00
parent fd7474e8bc
commit 1f94af9247
1 changed files with 20 additions and 0 deletions

View File

@ -50,6 +50,26 @@ fedora/gcc/x86_64:
paths:
- obj/
fedora/clang/x86_64:
stage: test
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script:
- mkdir -p obj && cd obj && cmake
-DCMAKE_C_COMPILER=clang
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DPICKY_DEVELOPER=ON
-DUNIT_TESTING=ON .. &&
make -j$(nproc) && ctest --output-on-failure
tags:
- shared
except:
- tags
artifacts:
expire_in: 1 week
when: on_failure
paths:
- obj/
fedora/build:
stage: build
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD