ci: Use the existing checkout to create the subproject cache

Now that we have the monorepo, we always have a checkout
of gstreamer and we don't need to explicitly clone it again.

cbuild in ci-templates will always clone the repository in
/tmp/clone and we can use that to initialize the cache.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8994>
This commit is contained in:
Jordan Petridis 2025-05-16 16:16:17 +03:00 committed by GStreamer Marge Bot
parent a74bda813b
commit a61ce97e48
2 changed files with 7 additions and 9 deletions

View File

@ -5,9 +5,9 @@ variables:
# If you are hacking on them or need a them to rebuild, its enough # If you are hacking on them or need a them to rebuild, its enough
# to change any part of the string of the image you want. # to change any part of the string of the image you want.
### ###
FEDORA_TAG: '2025-04-15.0' FEDORA_TAG: '2025-05-23.0'
DEBIAN_TAG: '2025-04-15.0' DEBIAN_TAG: '2025-05-23.0'
CHECKS_TAG: '2025-02-04.0' CHECKS_TAG: '2025-02-04.0'

View File

@ -2,14 +2,12 @@
set -eux set -eux
branch="${GST_UPSTREAM_BRANCH:-main}" # Path where cbuild checks out the repo
repo_url="https://gitlab.freedesktop.org/gstreamer/gstreamer.git" cd /tmp/clone/
# get gstreamer and make all subprojects available # get gstreamer and make all subprojects available
git clone -b "${branch}" --depth=1 "${repo_url}" /gstreamer git submodule update --init --depth=1
git -C /gstreamer submodule update --init --depth=1 meson subprojects download
meson subprojects download --sourcedir /gstreamer ./ci/scripts/handle-subprojects-cache.py --build --cache-dir /subprojects /tmp/clone/subprojects/
./ci/scripts/handle-subprojects-cache.py --build --cache-dir /subprojects /gstreamer/subprojects/
# Avoid the cache being owned by root # Avoid the cache being owned by root
# and make sure its readable to anyone # and make sure its readable to anyone