]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
gitlab-ci: Add a FreeBSD meson job
authorAlex Richardson <arichardson@FreeBSD.org>
Tue, 9 Aug 2022 17:49:23 +0000 (17:49 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 10 Aug 2022 11:18:20 +0000 (11:18 +0000)
Also bump the FDO_DISTRIBUTION_TAG to ensure the disk images
include meson.

.gitlab-ci.yml

index f46e6ce1911c1eaa7412ebd59c80065d24d12358..8136308b63a9c32c41578c5f197289269a0425a0 100644 (file)
@@ -72,7 +72,7 @@ variables:
     BUILD_OS: freebsd
     BUILD_ARCH: "x86_64"
     FDO_DISTRIBUTION_VERSION: '13.0'
-    FDO_DISTRIBUTION_TAG: '2022-08-08.1'  # Bump this version on every ci-install.sh change
+    FDO_DISTRIBUTION_TAG: '2022-08-09.0'  # Bump this version on every ci-install.sh change
     FDO_REPO_SUFFIX: "$BUILD_OS/$BUILD_ARCH"
 
 .cmake-common:
@@ -417,6 +417,7 @@ freebsd image:
     - /app/vmctl exec "cd $CI_PROJECT_NAME && env make=gmake builddir=$builddir $(echo $(env | grep "ci_.*=")) bash -x ./tools/ci-build.sh $CI_BUILD_ARGS"
     # Copy build artifacts from the VM for archiving/JUnit XML display
     - mkdir -p "$builddir"
+    - rsync -av "vm:$CI_PROJECT_NAME/$builddir/meson-logs" "$builddir/" || true
     - scp -v "vm:$CI_PROJECT_NAME/$builddir/config.h" . || true
     - scp -v "vm:$ci_cmake_junit_output" "$ci_cmake_junit_output" || true
     # Finally, shut down the VM.
@@ -469,4 +470,15 @@ freebsd autotools:
     ci_variant: "production-no-upload-docs"
     CI_BUILD_ARGS: "--enable-xml-docs"
 
+freebsd meson:
+  extends:
+    - .build-env-freebsd
+    - .meson-common
+  variables:
+    # On FreeBSD the `environ` symbol is provided by the c startup code and is
+    # only defined in the main executable and not  available in libc.so, so
+    # building with -Wl,-no-undefined results in errors.
+    # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263265.
+    CI_BUILD_ARGS: "-Db_lundef=false"
+
 # vim:set sw=2 sts=2 et: