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