Skip to content

Commit

Permalink
CI: Add FreeBSD build tests for staged commits (#1948)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kinkie authored and squid-anubis committed Nov 20, 2024
1 parent dd3292c commit 51943b2
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 51943b2

Please sign in to comment.