diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8b534289a..07ea6867c2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -210,8 +210,6 @@ gst indent: # .build_template: &build - ci/scripts/handle-subprojects-cache.py subprojects/ - # Update subprojects to respect `.wrap` content - - meson subprojects update --reset - echo $MESON_ARGS - meson build/ $MESON_ARGS - ninja -C build/ diff --git a/ci/scripts/handle-subprojects-cache.py b/ci/scripts/handle-subprojects-cache.py index 9e3722111d..7e126e5fbf 100755 --- a/ci/scripts/handle-subprojects-cache.py +++ b/ci/scripts/handle-subprojects-cache.py @@ -8,6 +8,7 @@ import shutil import os import sys import argparse +import subprocess DEST = "/subprojects" PARSER = argparse.ArgumentParser() @@ -69,6 +70,7 @@ def copy_cache(options): print("Copying from %s -> %s" % (cache_dir, project_path)) shutil.copytree(cache_dir, project_path) + subprocess.check_call(['meson', 'subprojects', 'update', '--reset']) if __name__ == "__main__":