summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmma Anholt <emma@anholt.net>2022-12-13 10:29:58 -0800
committerMarge Bot <emma+marge@anholt.net>2022-12-14 17:09:07 +0000
commitdace7d780df7742b0c5ee838a0cd0a4ad668eb9c (patch)
tree4fc6e14c84ead624e0806ed7f3b8bb7e9d52bcc7
parent046c75e95c0c7faf16bc64ac620ded7d128e2e19 (diff)
ci/baremetal: Clean the directory we unpack artifacts into.
gitlab-runner reuses containers, and since we don't pull git, the working directory doesn't get cleaned automatically. You don't want to have stale files from previous builds, particularly if someone's testing changes of build options that might disable a driver. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20302>
-rw-r--r--.gitlab-ci/test/gitlab-ci.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml
index b06277c63ed..c171c0c3f6a 100644
--- a/.gitlab-ci/test/gitlab-ci.yml
+++ b/.gitlab-ci/test/gitlab-ci.yml
@@ -135,6 +135,8 @@ rustfmt:
# improve it even more (see https://docs.mesa3d.org/ci/bare-metal.html for
# setup).
- echo -e "\e[0Ksection_start:$(date +%s):artifacts_download[collapsed=true]\r\e[0KDownloading artifacts from minio"
+ # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
+ - rm -rf install
- wget ${FDO_HTTP_CACHE_URI:-}https://${PIPELINE_ARTIFACTS_BASE}/${MINIO_ARTIFACT_NAME}.tar.zst -S --progress=dot:giga -O- | tar --zstd -x
- echo -e "\e[0Ksection_end:$(date +%s):artifacts_download\r\e[0K"
artifacts: