From d0eab92971d4a75706194aa0df8b17659eb0d399 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 9 Jul 2020 12:46:34 +0100 Subject: [PATCH] ci: Use --branch and --depth arguments to git clone to save bandwidth This reduces the bandwidth for downloading xdg-desktop-portal from 2.7MB to 300KB, on each CI run. Signed-off-by: Philip Withnall --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e25d57bd9..1f21d77da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -144,9 +144,8 @@ installed-tests: # FIXME Install newer xdg-desktop-portal with # GMemoryMonitor support, see: # https://github.com/flatpak/xdg-desktop-portal/pull/365 - - git clone --single-branch https://github.com/flatpak/xdg-desktop-portal.git + - git clone --branch 1.6.0 --depth 1 --no-tags https://github.com/flatpak/xdg-desktop-portal.git - cd xdg-desktop-portal - - git reset --hard 1.6.0 - ./autogen.sh --prefix=/usr --libdir=/usr/lib64 --disable-libportal --disable-dependency-tracking - make - sudo make install @@ -154,7 +153,7 @@ installed-tests: # FIXME install newer gobject-introspection # with GMemoryMonitor support, see: # https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/193 - - git clone --single-branch https://gitlab.gnome.org/GNOME/gobject-introspection.git + - git clone --branch master --depth 1 --no-tags https://gitlab.gnome.org/GNOME/gobject-introspection.git - cd gobject-introspection - /usr/bin/meson _build --prefix=/usr --libdir=/usr/lib64 - ninja -C _build