ci: Sanitise build and install paths
authorDaniel Stone <daniels@collabora.com>
Tue, 3 Aug 2021 20:53:12 +0000 (21:53 +0100)
committerDaniel Stone <daniels@collabora.com>
Wed, 4 Aug 2021 17:20:27 +0000 (18:20 +0100)
No sense in generating enormously long paths. This also happens to fix
artifacts not actually recording anything because we had a mismatch in
artifact paths vs. actual paths.

Signed-off-by: Daniel Stone <daniels@collabora.com>
.gitlab-ci.yml

index cfec933..c8fdf09 100644 (file)
@@ -159,9 +159,9 @@ armv7-debian-container_prep:
   variables:
     MESON_BUILD_TYPE: "-Dbuildtype=debug -Doptimization=0 -Db_sanitize=address,undefined"
   before_script:
-    - export BUILD_ID="wayland-$CI_JOB_NAME-$CI_COMMIT_SHA-$CI_JOB_ID"
-    - export PREFIX="$(pwd)/prefix-$BUILD_ID"
-    - export BUILDDIR="$(pwd)/build-$BUILD_ID"
+    - export BUILD_ID="wayland-$CI_JOB_NAME"
+    - export PREFIX="${CI_PROJECT_DIR}/prefix-${BUILD_ID}"
+    - export BUILDDIR="${CI_PROJECT_DIR}/build-${BUILD_ID}"
     - mkdir "$BUILDDIR" "$PREFIX"
 
 
@@ -224,10 +224,10 @@ armv7-debian-container_prep:
     - meson test --num-processes ${FDO_CI_CONCURRENT:-4}
     - ninja clean
   artifacts:
-    name: wayland-meson-$CI_COMMIT_SHA-$CI_JOB_ID
+    name: wayland-$CI_JOB_NAME
     when: always
     paths:
-      - build-meson/meson-logs
+      - build-*/meson-logs
       - prefix-*