From 3bf94dac913323f638587b3a0bb1f95563c0c6da Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Mon, 27 Sep 2021 12:24:48 +0100 Subject: [PATCH] CI: do manpages build only on the clang unit test run It's slow and unaffected by compiler/flags, so no point in repeating it --- .github/workflows/unit_tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.sh b/.github/workflows/unit_tests.sh index edc69301a4d..4188047cf06 100755 --- a/.github/workflows/unit_tests.sh +++ b/.github/workflows/unit_tests.sh @@ -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' -- 2.47.3