ci: Enable -Dintrospection for dist builds

This means that the documentation can actually be generated, which was
broken before. Building the documentation requires `enable_gir`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-12-11 15:36:00 +00:00
parent 53c197bd61
commit f2488ef526
No known key found for this signature in database
GPG Key ID: C5C42CFB268637CA

View File

@ -848,17 +848,23 @@ pages:
- public
dist-job:
image: $FEDORA_IMAGE
extends:
- .build-linux
- .with-git
image: "${FEDORA_IMAGE}"
stage: build
before_script:
- !reference [".build-linux", "before_script"]
- !reference [".with-git", "before_script"]
only:
- tags
script:
# Ignore extra git security checks as we don't care in CI.
- git config --global --add safe.directory "${PWD}"
- git submodule update --init
- for m in $(git submodule foreach -q 'echo $path'); do git config --global --add safe.directory "${PWD}/${m}"; done
- meson subprojects download
- meson setup ${MESON_COMMON_OPTIONS} --buildtype release -Ddocumentation=true -Dman-pages=enabled _build
- meson setup ${MESON_COMMON_OPTIONS}
--buildtype release
-Ddocumentation=true
-Dintrospection=enabled
-Dman-pages=enabled
_build
- meson dist -C _build
# Compile again to build the docs
- meson compile -C _build