]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
CI: do manpages build only on the clang unit test run 20837/head
authorLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 27 Sep 2021 11:24:48 +0000 (12:24 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 27 Sep 2021 11:24:48 +0000 (12:24 +0100)
It's slow and unaffected by compiler/flags, so no point in repeating it

.github/workflows/unit_tests.sh

index edc69301a4d8ff0561099e3569877b2c91937b24..4188047cf06c15d4fac20abcd855d751243bc1dd 100755 (executable)
@@ -45,13 +45,15 @@ for phase in "${PHASES[@]}"; do
             if [[ "$phase" = "RUN_CLANG" ]]; then
                 export CC=clang
                 export CXX=clang++
+                # The docs build is slow and is not affected by compiler/flags, so do it just once
+                MESON_ARGS+=(-Dman=true)
             fi
             if [[ "$phase" = "RUN_GCC" ]]; then
                 MESON_ARGS+=(-Db_coverage=true)
                 # See FIXME below
                 (set +x; while :; do echo -ne "\n[WATCHDOG] $(date)\n"; sleep 30; done) &
             fi
-            meson --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true -Dman=true "${MESON_ARGS[@]}" build
+            meson --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true "${MESON_ARGS[@]}" build
             ninja -C build -v
             # Some of the unsafe tests irreparably break the host's network connectivity, so run them in a namespace
             unshare -n bash -c 'ip link set dev lo up; meson test -C build --print-errorlogs'