diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-09-29 19:30:05 +0530 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2023-01-26 16:03:58 +0000 |
commit | e2a8aac2b03e0a792688ffbb61648c1c72a7be6b (patch) | |
tree | 6857d58747f1ade3be3ff99fc57dc96fa524fc0f /ci | |
parent | 983d78daa54d585334ec941db622270ea746c9d7 (diff) | |
download | gstreamer-e2a8aac2b03e0a792688ffbb61648c1c72a7be6b.tar.gz |
ci/windows: Remove cargo-vendor sources from the cerbero source cache
Copying the source cache to a running Cerbero CI job on Windows causes
strange / corrupted errors that talk about hard links like:
++ cp -a C:/cerbero/cerbero-sources .
cp: will not create hard link `./cerbero-sources/gstreamer-1.0/subprojects/gst-plugins-good/sys/osxaudio' to directory `./cerbero-sources/cargo-c-0.9.12/cargo-vendor/adler/benches'
[...]
So, delete it. The vendored sources are cached by cargo in its own
cache inside CARGO_HOME, which is build/rust/cargo/ and is preserved
in the image. We won't need to redownload any of this.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3805>
Diffstat (limited to 'ci')
-rw-r--r-- | ci/docker/windows/prepare_cerbero_env.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/docker/windows/prepare_cerbero_env.sh b/ci/docker/windows/prepare_cerbero_env.sh index 21d55b86fb..eaaf87bf36 100644 --- a/ci/docker/windows/prepare_cerbero_env.sh +++ b/ci/docker/windows/prepare_cerbero_env.sh @@ -23,5 +23,7 @@ echo 'vs_install_version = "vs16"' >> localconf.cbc # Wipe visualstudio package dist, sources, logs, and the build tools recipes ./cerbero-uninstalled -t -v visualstudio -c localconf.cbc -c config/win64.cbc wipe --force --build-tools +# Vendored sources get confused with hard links +rm -rvf /c/cerbero/cerbero-sources/*/cargo-vendor # clean the localconf -rm /c/cerbero/localconf.cbc +rm -v /c/cerbero/localconf.cbc |