[glib: 1/2] ci: Setup submodules and subprojects before building on dist




commit 99c2b4e4996e89c826c524eead68df8c2815c28f
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Jul 12 19:57:17 2022 +0200

    ci: Setup submodules and subprojects before building on dist
    
    Also handle a permission issue.

 .gitlab-ci.yml | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index da11515bb9..e4cc3ede5d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]