ci: Setup submodules and subprojects before building on dist

Also handle a permission issue.
This commit is contained in:
Marco Trevisan (Treviño) 2022-07-12 19:57:17 +02:00
parent f622a4ed53
commit 99c2b4e499

View File

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