Add a FreeBSD and OpenBSD compilation test on Github

Using the vmactions on Github, it is also possible to test
compilation on various BSD flavors on Github. The .cirrus.yml
file is now not required anymore, so we can remove it.
This commit is contained in:
Thomas Huth committed 2026-04-26 16:17:42 +02:00
1 parent 8577a1ab67
commit 9594e78b4e
2 files changed
+49 -28

No files matched your search

-28
View File
@@ -1,28 +0,0 @@
freebsd_task:
freebsd_instance:
image_family: freebsd-14-3
cpu: 4
memory: 4G
install_script:
- pkg update
- pkg install -y pkgconf cmake gmake capstone4 GraphicsMagick png
devel/sdl20 devel/libedit
script:
- ./configure --enable-debug || { cat config.log; exit 1; }
- gmake -j$(sysctl -n hw.ncpu)
- ctest -j$(sysctl -n hw.ncpu) test
|| { cat Testing/Temporary/LastTest.log; exit 1; }
xcode_task:
osx_instance:
image: ghcr.io/cirruslabs/macos-runner:sonoma
download_cache:
folder: dl_cache
populate_script:
- if [ ! -d dl_cache ]; then mkdir dl_cache ; fi
install_script:
- ci/macos-setup.sh
script:
- ci/macos-build.sh
hatari_artifacts:
path: "hatari-snapshot.zip"
+49
View File
@@ -0,0 +1,49 @@
name: Build Hatari on BSDs
on:
push:
branches:
- main
- test
tags:
- v*
jobs:
freebsd:
runs-on: ubuntu-latest
name: Compile Hatari on FreeBSD
steps:
- uses: actions/checkout@v6
- name: Compile Hatari with FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg update
pkg install -y cmake gmake pkgconf capstone4 GraphicsMagick png \
devel/sdl20 devel/libedit
run: |
uname -a
./configure --enable-debug --enable-werror || { cat config.log; exit 1; }
gmake -j$(sysctl -n hw.ncpu)
ctest -j$(sysctl -n hw.ncpu) --output-on-failure
openbsd:
runs-on: ubuntu-latest
name: Compile Hatari on OpenBSD
steps:
- uses: actions/checkout@v6
- name: Compile Hatari with OpenBSD
id: test
uses: vmactions/openbsd-vm@v1
with:
usesh: true
prepare: |
pkg_add cmake gmake pkgconf devel/sdl2 png
run: |
uname -a
./configure --enable-debug --enable-werror || { cat config.log; exit 1; }
gmake -j$(sysctl -n hw.ncpu)
ctest -j$(sysctl -n hw.ncpu) --output-on-failure