Skip to content

Commit ff4ec8d

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b64579d commit ff4ec8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/test-documentation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ check_unignored_build_artifacts
4848

4949
# Build docs with Meson and AsciiDoc
5050
meson setup build-asciidoc -Ddocs=html,man -Ddocs_backend=asciidoc
51-
meson compile -C build-asciidoc
51+
meson compile -C build-asciidoc docs
5252
check_docs build-asciidoc AsciiDoc
5353
rm -rf build-asciidoc
5454

5555
# Build docs with Meson and AsciiDoctor
5656
meson setup build-asciidoctor -Ddocs=html,man -Ddocs_backend=asciidoctor
57-
meson compile -C build-asciidoctor
57+
meson compile -C build-asciidoctor docs
5858
check_docs build-asciidoctor Asciidoctor
5959
rm -rf build-asciidoctor
6060

0 commit comments

Comments
 (0)