]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: tweak the compilation options
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 11 Jun 2020 12:21:02 +0000 (14:21 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 11 Jun 2020 14:11:19 +0000 (16:11 +0200)
Build each build with tests (slow tests and fuzzer tests as well), and
combine the LTO build with -O3.

.github/workflows/ubuntu-build-check.sh

index a2fade9de3bfb527c1513d4681a761985f45a497..4b9f689047b3baba2a1b0197dc1e1963b16ac19e 100755 (executable)
@@ -9,9 +9,9 @@ success() { echo >&2 -e "\033[32;1m$1\033[0m"; }
 ARGS=(
     "--optimization=0"
     "--optimization=2"
-    "--optimization=3"
     "--optimization=s"
-    "-Db_lto=true"
+    "--optimization=3 -Db_lto=true"
+    "--optimization=3 -Db_lto=false"
     "-Db_ndebug=true"
 )
 PACKAGES=(
@@ -100,7 +100,7 @@ for args in "${ARGS[@]}"; do
     SECONDS=0
 
     info "Checking build with $args"
-    if ! AR="$AR" CC="$CC" CXX="$CXX" meson --werror $args build; then
+    if ! AR="$AR" CC="$CC" CXX="$CXX" meson -Dtests=unsafe -Dslow-tests=true --werror $args build; then
         fatal "meson failed with $args"
     fi