Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: vmactions/openbsd-vm@v1
with:
prepare: |
pkg_add -v cmake ninja git python bash
pkg_add -v cmake ninja git bash
run: |
git clone --depth=1 https://codeberg.org/OpenBSD/ports.git /usr/ports
sync: 'rsync'
Expand All @@ -34,6 +34,45 @@ jobs:
cd ${{ github.workspace }}
CI_CONFIG="ci/configs/openbsd.bash" bash ci/scripts/ci.sh

build-freebsd:
runs-on: ubuntu-latest
name: build • freebsd
defaults:
run:
shell: freebsd {0}
steps:
- uses: actions/checkout@v5

- name: Start FreeBSD VM
uses: vmactions/freebsd-vm@v1
with:
prepare: |
pkg install -y cmake ninja bash capnproto
sync: 'rsync'
copyback: false

- name: Run CI script
run: |
cd ${{ github.workspace }}
CI_CONFIG="ci/configs/freebsd.bash" bash ci/scripts/ci.sh

build-macos:
runs-on: macos-latest
name: build • macos

steps:
- uses: actions/checkout@v5

- name: Install dependencies
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
run: |
brew install --quiet ninja capnp

- name: Run CI script
run: |
CI_CONFIG="ci/configs/macos.bash" bash ci/scripts/ci.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested that this also works locally on macOS.


build:
runs-on: ubuntu-latest

Expand Down
5 changes: 5 additions & 0 deletions ci/configs/freebsd.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CI_DESC="CI config for FreeBSD"
CI_DIR=build-freebsd
export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter"
CMAKE_ARGS=(-G Ninja)
BUILD_ARGS=(-k 0)
5 changes: 5 additions & 0 deletions ci/configs/macos.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CI_DESC="CI config for macOS"
CI_DIR=build-macos
export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter"
CMAKE_ARGS=(-G Ninja)
BUILD_ARGS=(-k 0)
Loading