CI: add support for FreeBSD/NetBSD/OpenBSD through sourcehut
[tinc] / .builds / openbsd.yml
diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml
new file mode 100644 (file)
index 0000000..d8b2ea1
--- /dev/null
@@ -0,0 +1,33 @@
+image: openbsd/6.9
+
+packages:
+  - gmake
+  - automake-1.16.3
+  - autoconf-2.71
+  - openssl-1.1.1k
+  - lzo2
+  - miniupnpc
+  - readline
+  - texinfo
+
+environment:
+  AUTOCONF_VERSION: 2.71
+  AUTOMAKE_VERSION: 1.16
+  CFLAGS: -I/usr/local/include -L/usr/local/lib
+
+sources:
+  - https://github.com/gsliepen/tinc
+
+tasks:
+  - configure: |
+      cd tinc
+      autoreconf -fsi
+      ./configure --with-miniupnpc
+
+  - build: |
+      cd tinc
+      gmake -j$(sysctl -n hw.ncpu)
+
+  - test: |
+      cd tinc
+      gmake check-recursive VERBOSE=1