From 010f2d211e850e906c9a19bf2a8a1af65d4d0e1c Mon Sep 17 00:00:00 2001 From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:00:30 +0000 Subject: [PATCH] CI: Add FreeBSD build tests for staged commits (#1948) 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 | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/.github/workflows/slow.yaml b/.github/workflows/slow.yaml index 0d60fa04ed..534b293543 100644 --- a/.github/workflows/slow.yaml +++ b/.github/workflows/slow.yaml @@ -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 -- 2.47.3