[igt-dev] [PATCH v3 10/12] ci: Upload build tarball to MinIO
Tomeu Vizoso
tomeu.vizoso at collabora.com
Fri Mar 11 14:12:58 UTC 2022
For use in test jobs in LAVA that need to download them into their
rootfs.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
.gitlab-ci.yml | 5 +++++
ci/upload-artifacts.sh | 7 +++++++
2 files changed, 12 insertions(+)
create mode 100644 ci/upload-artifacts.sh
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2cf109728d54..f820661496c4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,8 @@ variables:
-Drunner=enabled
-Dlibunwind=enabled
LANG: "C.UTF-8"
+ MINIO_HOST: minio-packet.freedesktop.org
+ PIPELINE_ARTIFACTS_BASE: ${MINIO_HOST}/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}
stages:
- build-containers
@@ -168,10 +170,13 @@ build:tests-debian-meson-armhf:
build:tests-debian-meson-arm64:
image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-arm64:commit-$CI_COMMIT_SHA
stage: build
+ variables:
+ ARCH: arm64
script:
- export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/
- meson --cross-file ci/meson-cross-arm64.txt build
- ninja -C build -j${FDO_CI_CONCURRENT:-4} || ninja -C build -j 1
+ - sh ci/upload-artifacts.sh
artifacts:
paths:
- build
diff --git a/ci/upload-artifacts.sh b/ci/upload-artifacts.sh
new file mode 100644
index 000000000000..69a9397a902f
--- /dev/null
+++ b/ci/upload-artifacts.sh
@@ -0,0 +1,7 @@
+# Pass needed files to the test stage
+
+cp -rf ci tests/*_ci build/.
+MINIO_ARTIFACT_NAME="igt-$ARCH.tar.gz"
+tar -czf $MINIO_ARTIFACT_NAME build
+ci-fairy minio login --token-file "${CI_JOB_JWT_FILE}"
+ci-fairy minio cp ${MINIO_ARTIFACT_NAME} minio://${PIPELINE_ARTIFACTS_BASE}/${MINIO_ARTIFACT_NAME}
--
2.31.1
More information about the igt-dev
mailing list