mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
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 <withnall@endlessm.com>
This commit is contained in:
parent
735c80dc5b
commit
d0eab92971
@ -144,9 +144,8 @@ installed-tests:
|
|||||||
# FIXME Install newer xdg-desktop-portal with
|
# FIXME Install newer xdg-desktop-portal with
|
||||||
# GMemoryMonitor support, see:
|
# GMemoryMonitor support, see:
|
||||||
# https://github.com/flatpak/xdg-desktop-portal/pull/365
|
# 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
|
- cd xdg-desktop-portal
|
||||||
- git reset --hard 1.6.0
|
|
||||||
- ./autogen.sh --prefix=/usr --libdir=/usr/lib64 --disable-libportal --disable-dependency-tracking
|
- ./autogen.sh --prefix=/usr --libdir=/usr/lib64 --disable-libportal --disable-dependency-tracking
|
||||||
- make
|
- make
|
||||||
- sudo make install
|
- sudo make install
|
||||||
@ -154,7 +153,7 @@ installed-tests:
|
|||||||
# FIXME install newer gobject-introspection
|
# FIXME install newer gobject-introspection
|
||||||
# with GMemoryMonitor support, see:
|
# with GMemoryMonitor support, see:
|
||||||
# https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/193
|
# 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
|
- cd gobject-introspection
|
||||||
- /usr/bin/meson _build --prefix=/usr --libdir=/usr/lib64
|
- /usr/bin/meson _build --prefix=/usr --libdir=/usr/lib64
|
||||||
- ninja -C _build
|
- ninja -C _build
|
||||||
|
Loading…
Reference in New Issue
Block a user