From 5c09c9e977103b66625fa822ae93d9e71bdaecf9 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 9 Jul 2020 12:47:33 +0100 Subject: [PATCH] ci: Limit depth of subprojects when cloning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the depth= argument from Meson 0.52 to limit the clone depth of subprojects to 1. This should make the CI images a little smaller, and reduce the bandwidth required to build them (although that’s not so important because it only happens once every few months). Similarly, only clone to a depth of 1 in `cache-subprojects.sh`, which is run once every few months. Signed-off-by: Philip Withnall --- .gitlab-ci/cache-subprojects.sh | 2 +- subprojects/gtk-doc.wrap | 1 + subprojects/libffi.wrap | 1 + subprojects/proxy-libintl.wrap | 1 + subprojects/sysprof.wrap | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/cache-subprojects.sh b/.gitlab-ci/cache-subprojects.sh index 421631ed2..fb0b1df82 100755 --- a/.gitlab-ci/cache-subprojects.sh +++ b/.gitlab-ci/cache-subprojects.sh @@ -2,7 +2,7 @@ set -e -git clone https://gitlab.gnome.org/GNOME/glib.git +git clone --depth 1 --no-tags https://gitlab.gnome.org/GNOME/glib.git meson subprojects download --sourcedir glib rm glib/subprojects/*.wrap mv glib/subprojects/ . diff --git a/subprojects/gtk-doc.wrap b/subprojects/gtk-doc.wrap index 7469d027b..79ec37220 100644 --- a/subprojects/gtk-doc.wrap +++ b/subprojects/gtk-doc.wrap @@ -2,3 +2,4 @@ directory=gtk-doc url=https://gitlab.gnome.org/GNOME/gtk-doc.git revision=master +depth=1 diff --git a/subprojects/libffi.wrap b/subprojects/libffi.wrap index 6dea9ebed..00b29d6a2 100644 --- a/subprojects/libffi.wrap +++ b/subprojects/libffi.wrap @@ -2,3 +2,4 @@ directory=libffi url=https://gitlab.freedesktop.org/gstreamer/meson-ports/libffi.git revision=meson +depth=1 diff --git a/subprojects/proxy-libintl.wrap b/subprojects/proxy-libintl.wrap index b53c8f7c3..6225021b8 100644 --- a/subprojects/proxy-libintl.wrap +++ b/subprojects/proxy-libintl.wrap @@ -2,3 +2,4 @@ directory=proxy-libintl url=https://github.com/frida/proxy-libintl.git revision=0.1 +depth=1 diff --git a/subprojects/sysprof.wrap b/subprojects/sysprof.wrap index 14874880e..fb669463b 100644 --- a/subprojects/sysprof.wrap +++ b/subprojects/sysprof.wrap @@ -2,3 +2,4 @@ directory=sysprof url=https://gitlab.gnome.org/GNOME/sysprof.git revision=6b1cd7a722fcebae1ac392562c47957477ade8bf +depth=1