[libvirt PATCH] gitlab-ci: Enable FreeBSD native builds

Erik Skultety posted 1 patch 3 years, 11 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/2bb3c3314a75ab8b4998b7bf18d836d65b9cdf85.1591366469.git.eskultet@redhat.com
.gitlab-ci.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
[libvirt PATCH] gitlab-ci: Enable FreeBSD native builds
Posted by Erik Skultety 3 years, 11 months ago
The runners have already been registered to the libvirt gitlab CI, we
just need to enable building on them. Apart from adding respective CI
job labels, the native job had to be tweaked so that the build dir
inside the git repo is deleted before the build runs to always star with
a clean environment, this results in a NOP on in the container
workloads.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
---
 .gitlab-ci.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7113a1283c..33b83b0bb3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,6 +25,7 @@ stages:
   before_script:
     - *script_variables
   script:
+    - rm -rf build
     - mkdir build
     - cd build
     - ../autogen.sh || (cat config.log && exit 1)
@@ -109,6 +110,16 @@ x64-ubuntu-2004:
   <<: *native_build_default_job_definition
   image: quay.io/libvirt/buildenv-libvirt-ubuntu-2004:latest
 
+x64-freebsd-11:
+  <<: *native_build_default_job_definition
+  tags:
+    - freebsd-11
+
+x64-freebsd-12:
+  <<: *native_build_default_job_definition
+  tags:
+    - freebsd-12
+
 
 # Cross compiled build jobs
 
-- 
2.26.2