allow CI script to create release builds

This commit is contained in:
Fabian Greffrath 2022-03-08 09:39:39 +01:00
parent 517e96c86f
commit b28aee2679

View File

@ -1,5 +1,6 @@
#!/bin/sh
if [ "$ANALYZE" = "true" ] ; then
if [ "$ANALYZE" = "true" ]
then
cppcheck --error-exitcode=1 -j2 -DRANGECHECK -ISource Source toolsrc 2> stderr.txt
RET=$?
if [ -s stderr.txt ]
@ -9,9 +10,14 @@ if [ "$ANALYZE" = "true" ] ; then
exit $RET
else
set -e
export VERBOSE=1
rm -rf build/ CMakeCache.txt CMakeFiles/
mkdir build && cd build
cmake -G "Ninja" "$CROSSRULE" .. -DENABLE_WERROR=ON
if [ -n "$RELEASE" ]
then
BUILD_TYPE="-DCMAKE_BUILD_TYPE=Release"
fi
cmake -G "Ninja" "$BUILD_TYPE" "$CROSSRULE" .. -DENABLE_WERROR=ON
ninja -v
DESTDIR=/tmp/whatever ninja -v install/strip
ninja -v package