Switch to Ninja for the clang build

Clang is generally slower to compile than GCC so use a faster Make for
that build variant. This also allows us to verify our CMake files don't
do anything Make specific.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-08-06 13:25:23 +02:00 committed by Kevin Ottens (Rebase PR Action)
parent 5116f4d255
commit 571e15c6eb

View file

@ -52,7 +52,7 @@ steps:
path: /drone/build
commands:
- cd /drone/build
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -DCMAKE_BUILD_TYPE=Debug -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../src
- cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -DCMAKE_BUILD_TYPE=Debug -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../src
- name: compile
image: nextcloudci/client-5.12:client-5.12-10
volumes:
@ -60,7 +60,7 @@ steps:
path: /drone/build
commands:
- cd /drone/build
- make -j$(nproc)
- ninja
- name: test
image: nextcloudci/client-5.12:client-5.12-10
volumes: