Merge branch 'dist-job-fix' into 'main'

ci: Setup submodules and subprojects before building on dist

See merge request GNOME/glib!2812
This commit is contained in:
Philip Withnall 2022-07-15 22:09:42 +00:00
commit 32e1c2f91a

View File

@ -562,6 +562,11 @@ dist-job:
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 ${MESON_COMMON_OPTIONS} --buildtype release -Dgtk_doc=true -Dman=true _build
- cd _build
- ninja dist