Parallel clone sparse/shallow submodules

(buzzword overload in the title, sorry)

Script update-submodules.sh does a sparse and shallow checkout of
submodules. It is offered as convenience for developers who want to
avoid long checkout times and save disk space. The script is called by a
few build jobs in CI to check that it doesn't break. This PR
parallelizes the actual checkout which reduces script runtime from 425
sec to 258 sec.
This commit is contained in:
Robert Schulze 2023-11-08 20:02:40 +00:00
parent 2cf2c6bbd8
commit fa470b16e5
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -8,4 +8,4 @@ WORKDIR=$(readlink -f "${WORKDIR}")
"$WORKDIR/sparse-checkout/setup-sparse-checkout.sh" "$WORKDIR/sparse-checkout/setup-sparse-checkout.sh"
git submodule init git submodule init
git submodule sync git submodule sync
git submodule update --depth=1 git submodule update --depth=1 --jobs 16