ci: Use ninja as build system

This commit is contained in:
Max Lübke 2024-10-23 10:29:54 +02:00
parent 32aa5527df
commit 14195b45dc

View File

@ -2,7 +2,7 @@ image: ubuntu:24.04
before_script: before_script:
- apt-get update -y - apt-get update -y
- apt-get install -y build-essential cmake git - apt-get install -y build-essential cmake git ninja-build
stages: stages:
- test - test
@ -11,8 +11,8 @@ test:
stage: test stage: test
script: script:
- mkdir _build && cd _build - mkdir _build && cd _build
- cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release .. - cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -G Ninja ..
- make -j$(nproc) - ninja
- ctest --output-junit test_results.xml - ctest --output-junit test_results.xml
artifacts: artifacts:
when: always when: always