The command was not run in Windows jobs, better keep subprojects
handling in a single script.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2509>
#
.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/
import os
import sys
import argparse
+import subprocess
DEST = "/subprojects"
PARSER = argparse.ArgumentParser()
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__":