Skip to content

ci: migrate FreeBSD CI from Cirrus CI to GitHub Actions #22

ci: migrate FreeBSD CI from Cirrus CI to GitHub Actions

ci: migrate FreeBSD CI from Cirrus CI to GitHub Actions #22

Workflow file for this run

# SPDX-FileCopyrightText: 2026 Juergen Repp
# SPDX-License-Identifier: BSD-2-Clause
name: FreeBSD CI
on:
[push, pull_request]
jobs:
freebsd-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Test in FreeBSD
uses: vmactions/freebsd-vm@v1
with:
release: "14.3"
env: |
CFLAGS="-I/usr/local/include -I/usr/local/openssl/include"
LDFLAGS="-L/usr/local/lib"
libusb_version="v1.0.26"
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
prepare: |
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
pkg update -f
pkg install -y bash gmake coreutils libtool pkgconf autoconf autoconf-archive \
automake openssl json-c cmocka uthash wget curl git util-linux \
libftdi1
pkg install -y swtpm
sync
run: |
cd /home/runner/work/tpm2-tss/tpm2-tss
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
./bootstrap
./configure --enable-self-generated-certificate \
--enable-unit=yes \
--enable-integration=yes \
--with-crypto=ossl \
--disable-doxygen-doc \
--enable-tcti-swtpm=yes \
--enable-tcti-libtpms=no \
--enable-tcti-mssim=no \
--disable-tcti-spi-ltt2go \
--disable-dependency-tracking
gmake -j check || { cat test-suite.log; exit 1; }