mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 02:45:44 -05:00
ci: if clang is available, do that build too
This commit is contained in:
parent
37552c184b
commit
cfe92252d2
1 changed files with 7 additions and 1 deletions
|
@ -19,5 +19,11 @@ mkdir build || { echo "Could not create build directory." ; exit 1 ; }
|
|||
( cd build && cmake .. && make -j4 ) || { echo "Could not perform test-build." ; exit 1 ; }
|
||||
( cd build && make test ) || { echo "Tests failed." ; exit 1 ; }
|
||||
|
||||
|
||||
if which clang++ > /dev/null 2>&1 ; then
|
||||
# Do build again with clang
|
||||
rm -rf build
|
||||
mkdir build || { echo "Could not create build directory." ; exit 1 ; }
|
||||
( cd build && CC=clang CXX=clang++ cmake .. && make -j4 ) || { echo "Could not perform test-build." ; exit 1 ; }
|
||||
( cd build && make test ) || { echo "Tests failed." ; exit 1 ; }
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue