Skip to content

CI: migrate FreeBSD job to Github Actions #2

CI: migrate FreeBSD job to Github Actions

CI: migrate FreeBSD job to Github Actions #2

Workflow file for this run

name: Github Actions CI
permissions: {}
on:
pull_request:
branches:
- main
jobs:
freebsd15:
name: FreeBSD 15.0
runs-on: ubuntu-24.04
steps:
- uses: vmactions/freebsd-vm@7ca82f79fe3078fecded6d3a2bff094995447bbd
with:
sync: no
release: "15.0"
usesh: true
run: |
set -e
set -o pipefail
set -u
set -x
uname -rms
pkg install -y base64 cmake json-c openssl pkgconf python3 scrypt vim
python3 --version
sudo python3 -m ensurepip
sudo python3 -m pip install pexpect pytest
git clone --no-checkout -- ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} wd
cd wd
git fetch -- origin ${{ github.event.pull_request.head.sha }}
git checkout FETCH_HEAD
export CFLAGS="-pedantic -Werror -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=address,undefined"
export UBSAN_OPTIONS=print_stacktrace=1
cmake -DENABLE_GUI=OFF -B build -S .
cmake --build build
cmake --build build --target check
cmake --install build