Skip to content

Commit 408c50d

Browse files
author
marco
committed
ci: Add freebsd build
1 parent 1b8d4a6 commit 408c50d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,28 @@ jobs:
3434
cd ${{ github.workspace }}
3535
CI_CONFIG="ci/configs/openbsd.bash" bash ci/scripts/ci.sh
3636
37+
build-freebsd:
38+
runs-on: ubuntu-latest
39+
name: build • freebsd
40+
defaults:
41+
run:
42+
shell: freebsd {0}
43+
steps:
44+
- uses: actions/checkout@v5
45+
46+
- name: Start FreeBSD VM
47+
uses: vmactions/freebsd-vm@v1
48+
with:
49+
prepare: |
50+
pkg install -y cmake ninja git python bash capnproto
51+
sync: 'rsync'
52+
copyback: false
53+
54+
- name: Run CI script
55+
run: |
56+
cd ${{ github.workspace }}
57+
CI_CONFIG="ci/configs/freebsd.bash" bash ci/scripts/ci.sh
58+
3759
build:
3860
runs-on: ubuntu-latest
3961

ci/configs/freebsd.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CI_DESC="CI config for FreeBSD"
2+
CI_DIR=build-freebsd
3+
export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter"
4+
CMAKE_ARGS=(-G Ninja)
5+
BUILD_ARGS=(-k 0)

0 commit comments

Comments
 (0)