From 3e42139e138a8cbb67a756dab2d6eaeb2a115223 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 26 Feb 2024 23:16:48 +0100 Subject: [PATCH] ci: clone repos with shallow submodules --- ci/build-linux-old.sh | 3 ++- ci/build-mingw64.sh | 2 +- ci/build-openbsd.sh | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/build-linux-old.sh b/ci/build-linux-old.sh index c9dffe19ce..d9cd9eef04 100755 --- a/ci/build-linux-old.sh +++ b/ci/build-linux-old.sh @@ -5,7 +5,8 @@ set -e rm -rf subprojects mkdir -p subprojects git clone https://code.videolan.org/videolan/libplacebo.git \ - --depth 1 --branch v6.338 --recurse-submodules subprojects/libplacebo + --recurse-submodules --shallow-submodules \ + --depth=1 --branch v6.338 subprojects/libplacebo \ meson setup build \ -Dlibplacebo:vulkan=disabled \ diff --git a/ci/build-mingw64.sh b/ci/build-mingw64.sh index 69dd7e53a7..797c48358c 100755 --- a/ci/build-mingw64.sh +++ b/ci/build-mingw64.sh @@ -6,7 +6,7 @@ ln -snf . "$prefix_dir/usr" ln -snf . "$prefix_dir/local" wget="wget -nc --progress=bar:force" -gitclone="git clone --depth=1 --recursive" +gitclone="git clone --depth=1 --recursive --shallow-submodules" # -posix is Ubuntu's variant with pthreads support export CC=$TARGET-gcc-posix diff --git a/ci/build-openbsd.sh b/ci/build-openbsd.sh index f2b09ac905..8e9125cf38 100755 --- a/ci/build-openbsd.sh +++ b/ci/build-openbsd.sh @@ -5,7 +5,8 @@ set -e rm -rf subprojects mkdir -p subprojects git clone https://code.videolan.org/videolan/libplacebo.git \ - --depth 1 --recurse-submodules subprojects/libplacebo + --recurse-submodules --shallow-submodules \ + --depth=1 --recurse-submodules subprojects/libplacebo meson setup build \ -Dlibmpv=true \