ci: don't compile whole project when testing docs with Meson
Our "documentation" CI jobs, unsurprisingly, performs a couple of tests on our documentation. The job knows to not only test the documentation generated by our Makefile, but also by Meson. In the latter case with Meson we end up building the whole project, including all of the binaries. This is of course quite excessive and a waste of compute cycles, as we don't care about these binaries at all. Fix this by using the new "docs" target that we introduced in the preceding commit. Reported-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Sep 11, 2025 at 11:16 UTC
ff4ec8ded0504cbe4fb4705ad793d862acfc63fc
1 file changed
+2
-2
ci/test-documentation.sh
+2
-2
@@ -48,13 +48,13 @@ check_unignored_build_artifacts
48
49
# Build docs with Meson and AsciiDoc
50
meson setup build-asciidoc -Ddocs=html,man -Ddocs_backend=asciidoc
51
-meson compile -C build-asciidoc
51
+meson compile -C build-asciidoc docs
52
check_docs build-asciidoc AsciiDoc
53
rm -rf build-asciidoc
54
55
# Build docs with Meson and AsciiDoctor
56
meson setup build-asciidoctor -Ddocs=html,man -Ddocs_backend=asciidoctor
57
-meson compile -C build-asciidoctor
57
+meson compile -C build-asciidoctor docs
58
check_docs build-asciidoctor Asciidoctor
59
rm -rf build-asciidoctor
60