]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: github: replace cirrus by a vmactions/freebsd-vm job
authorWilliam Lallemand <wlallemand@irq6.net>
Sat, 18 Apr 2026 13:13:18 +0000 (15:13 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 3 Jun 2026 09:20:31 +0000 (11:20 +0200)
Cirrus FreeBSD jobs is not available anymore since June 1st , this job
uses github qemu-based images to run a FreeBSD job.

Remove Cirrus job.

.cirrus.yml [deleted file]
.github/workflows/freebsd.yml [new file with mode: 0644]
README.md

diff --git a/.cirrus.yml b/.cirrus.yml
deleted file mode 100644 (file)
index 169476f..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-FreeBSD_task:
-  freebsd_instance:
-    matrix:
-      image_family: freebsd-14-3
-  only_if: $CIRRUS_BRANCH =~ 'master|next'
-  install_script:
-    - pkg update -f && pkg upgrade -y && pkg install -y openssl git gmake lua54 socat pcre2
-  script:
-    - sudo sysctl kern.corefile=/tmp/%N.%P.core
-    - sudo sysctl kern.sugid_coredump=1
-    - scripts/build-vtest.sh
-    - gmake CC=clang V=1 ERR=1 TARGET=freebsd USE_ZLIB=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_OPENSSL=1 USE_LUA=1 LUA_INC=/usr/local/include/lua54 LUA_LIB=/usr/local/lib LUA_LIB_NAME=lua-5.4
-    - ./haproxy -vv
-    - ldd haproxy
-  test_script:
-    - env VTEST_PROGRAM=../vtest/vtest gmake reg-tests REGTESTS_TYPES=default,bug,devel
-  on_failure:
-    debug_script: (for folder in /tmp/*regtest*/vtc.*; do cat $folder/INFO $folder/LOG; done && ls /tmp/haproxy.*.core && gdb -ex 'thread apply all bt full' ./haproxy /tmp/haproxy.*.core)
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml
new file mode 100644 (file)
index 0000000..1eb68f9
--- /dev/null
@@ -0,0 +1,38 @@
+name: FreeBSD
+
+on:
+  push:
+    branches:
+      - master
+      - next
+  workflow_dispatch:
+
+permissions:
+  contents: read
+
+jobs:
+  clang:
+    runs-on: ubuntu-latest
+    if: ${{ github.repository_owner == 'haproxy' || github.event_name == 'workflow_dispatch' }}
+    steps:
+      - name: "Checkout repository"
+        uses: actions/checkout@v6
+
+      - name: "Build and test on FreeBSD"
+        uses: vmactions/freebsd-vm@v1
+        with:
+          release: "14.3"
+          prepare: |
+            pkg update -f && pkg upgrade -y && pkg install -y openssl git gmake lua54 socat pcre2 python3
+          run: |
+            sysctl kern.corefile=/tmp/%N.%P.core
+            sysctl kern.sugid_coredump=1
+            scripts/build-vtest.sh
+            gmake CC=clang V=1 ERR=1 TARGET=freebsd USE_ZLIB=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_OPENSSL=1 USE_LUA=1 LUA_INC=/usr/local/include/lua54 LUA_LIB=/usr/local/lib LUA_LIB_NAME=lua-5.4
+            ./haproxy -vv
+            ldd haproxy
+            if ! env VTEST_PROGRAM=../vtest/vtest gmake reg-tests REGTESTS_TYPES=default,bug,devel; then
+              for folder in /tmp/*regtest*/vtc.*; do cat $folder/INFO $folder/LOG; done
+              ls /tmp/haproxy.*.core 2>/dev/null && gdb -ex 'thread apply all bt full' ./haproxy /tmp/haproxy.*.core
+              exit 1
+            fi
index f94f32c70d47d6248ff32bb0841f582c292722b1..5fe2acd4de984c1abda5c354382bb1fe5ba6ecb0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
 [![Illumos](https://github.com/haproxy/haproxy/actions/workflows/illumos.yml/badge.svg)](https://github.com/haproxy/haproxy/actions/workflows/illumos.yml)
 [![NetBSD](https://github.com/haproxy/haproxy/actions/workflows/netbsd.yml/badge.svg)](https://github.com/haproxy/haproxy/actions/workflows/netbsd.yml)
 [![CrossCompile](https://github.com/haproxy/haproxy/actions/workflows/cross-zoo.yml/badge.svg)](https://github.com/haproxy/haproxy/actions/workflows/cross-zoo.yml)
-[![FreeBSD](https://api.cirrus-ci.com/github/haproxy/haproxy.svg?task=FreeBSD)](https://cirrus-ci.com/github/haproxy/haproxy/)
+[![FreeBSD](https://github.com/haproxy/haproxy/actions/workflows/freebsd.yml/badge.svg)](https://github.com/haproxy/haproxy/actions/workflows/freebsd.yml)
 [![VTest](https://github.com/haproxy/haproxy/actions/workflows/vtest.yml/badge.svg)](https://github.com/haproxy/haproxy/actions/workflows/vtest.yml)
 
 ![HAProxy logo](doc/HAProxyCommunityEdition_60px.png)