]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CI: Add FreeBSD build tests for staged commits (#1948)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Wed, 20 Nov 2024 16:00:30 +0000 (16:00 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 21 Nov 2024 09:24:21 +0000 (09:24 +0000)
Use a GitHub-hosted VM to create FreeBSD test environment.

We have not enabled ccache optimization for FreeBSD tests because we
do not know how to copy updated ccache files from VM back into runner.

.github/workflows/slow.yaml

index 0d60fa04ed19540576ba84591df938fe0301245b..534b293543f526d45e3ffd7b59f08fe1e01d7b38 100644 (file)
@@ -134,3 +134,50 @@ jobs:
         with:
           name: build-logs-macos
           path: btlayer-*.log
+
+  freebsd:
+    strategy:
+      matrix:
+        osversion:
+          - 14.1
+          - 13.3
+
+    runs-on: ubuntu-22.04
+    name: freebsd(${{ matrix.osversion }})
+
+    steps:
+      - name: Checkout Sources
+        uses: actions/checkout@v4
+
+      - name: Run test-builds
+        id: test-builds
+        uses: vmactions/freebsd-vm@v1
+        with:
+          usesh: true
+          release: ${{ matrix.osversion }}
+          prepare: |
+            pkg update
+            pkg install -y \
+              autoconf \
+              autoconf-archive \
+              automake \
+              bash \
+              cppunit \
+              gmake \
+              libltdl \
+              libtool \
+              m4 \
+              nettle \
+              pkgconf \
+              translate-toolkit
+
+          run: |
+            export MAKE=gmake
+            ./test-builds.sh
+
+      - name: Publish build logs
+        if: success() || failure()
+        uses: actions/upload-artifact@v4
+        with:
+          name: build-logs-freebsd-${{ matrix.osversion }}
+          path: btlayer-*.log