]> git.proxmox.com Git - mirror_zfs.git/commitdiff
CI: add FreeBSD build with Cirrus CI
authorMartin Matuška <martin@matuska.de>
Fri, 6 Oct 2023 15:50:26 +0000 (17:50 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 15:50:26 +0000 (08:50 -0700)
As a first step for automatic FreeBSD testing add a build and install
for FreeBSD versions 12.4, 13.2 and 14-snapshot using Cirrus CI.

Reviewed-by: Jose Luis Duran
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Martin Matuska <mm@FreeBSD.org>
Closes #15332

.cirrus.yml [new file with mode: 0644]
.gitignore

diff --git a/.cirrus.yml b/.cirrus.yml
new file mode 100644 (file)
index 0000000..18b2922
--- /dev/null
@@ -0,0 +1,21 @@
+env:
+  CIRRUS_CLONE_DEPTH: 1
+  ARCH: amd64
+
+build_task:
+  matrix:
+    freebsd_instance:
+      image_family: freebsd-12-4
+    freebsd_instance:
+      image_family: freebsd-13-2
+    freebsd_instance:
+      image_family: freebsd-14-0-snap
+  prepare_script:
+    - pkg install -y autoconf automake libtool gettext-runtime gmake ksh93 py39-packaging py39-cffi py39-sysctl
+  configure_script:
+    - env MAKE=gmake ./autogen.sh
+    - env MAKE=gmake ./configure --with-config="user" --with-python=3.9
+  build_script:
+    - gmake -j `sysctl -n kern.smp.cpus`
+  install_script:
+    - gmake install
index 8d91dd9466c541b6a4c4fb695fee88b5caea11a3..1ef47d921c28ce5e9891a7a98870fc539d875113 100644 (file)
@@ -42,6 +42,7 @@
 !udev/**
 
 !.editorconfig
+!.cirrus.yml
 !.gitignore
 !.gitmodules
 !AUTHORS
@@ -60,7 +61,6 @@
 !TEST
 !zfs.release.in
 
-
 #
 # Normal rules
 #