Disable tests & benchmarks on ubuntu 20.04 docker builds (#5213)

This commit is contained in:
pajlada 2024-02-27 20:29:08 +01:00 committed by GitHub
parent 687b213394
commit dbb7882162
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,15 @@ set -e
env env
BUILD_TESTS="On"
BUILD_BENCHMARKS="ON"
ubuntu_version="$(lsb_release -sr)"
if [ "$ubuntu_version" = "20.04" ]; then
BUILD_TESTS="Off"
BUILD_BENCHMARKS="Off"
fi
rm -rf build rm -rf build
mkdir build mkdir build
cmake \ cmake \
@ -14,8 +23,8 @@ cmake \
-DCMAKE_INSTALL_PREFIX=appdir/usr/ \ -DCMAKE_INSTALL_PREFIX=appdir/usr/ \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DBUILD_APP=On \ -DBUILD_APP=On \
-DBUILD_TESTS=On \ -DBUILD_TESTS="$BUILD_TESTS" \
-DBUILD_BENCHMARKS=On \ -DBUILD_BENCHMARKS="$BUILD_BENCHMARKS" \
-DUSE_PRECOMPILED_HEADERS=OFF \ -DUSE_PRECOMPILED_HEADERS=OFF \
-DCMAKE_EXPORT_COMPILE_COMMANDS=On \ -DCMAKE_EXPORT_COMPILE_COMMANDS=On \
-DCHATTERINO_PLUGINS="$C2_PLUGINS" \ -DCHATTERINO_PLUGINS="$C2_PLUGINS" \