Skip to content

Commit df01873

Browse files
committed
Merge #197: ci: Add freebsd and macos build
fa1ac30 ci: Add macos and freebsd task (marco) Pull request description: Should be harmless to add and may be useful ACKs for top commit: Sjors: ACK fa1ac30 hebasto: ACK fa1ac30. ryanofsky: Code review ACK fa1ac30. Seems good to cover these different package managers and platforms Tree-SHA512: 4caa59a21eeef5077d3862cb4d04cbf5f7a902d06c29586fea76ab6bcb646a01a21bba716284a3e6b9d3ad02388f677d94fbbdd27ade8c73ac685ddbc99b7f2d
2 parents 1b8d4a6 + fa1ac30 commit df01873

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: vmactions/openbsd-vm@v1
1919
with:
2020
prepare: |
21-
pkg_add -v cmake ninja git python bash
21+
pkg_add -v cmake ninja git bash
2222
run: |
2323
git clone --depth=1 https://codeberg.org/OpenBSD/ports.git /usr/ports
2424
sync: 'rsync'
@@ -34,6 +34,45 @@ 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 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+
59+
build-macos:
60+
runs-on: macos-latest
61+
name: build • macos
62+
63+
steps:
64+
- uses: actions/checkout@v5
65+
66+
- name: Install dependencies
67+
env:
68+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
69+
run: |
70+
brew install --quiet ninja capnp
71+
72+
- name: Run CI script
73+
run: |
74+
CI_CONFIG="ci/configs/macos.bash" bash ci/scripts/ci.sh
75+
3776
build:
3877
runs-on: ubuntu-latest
3978

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)

ci/configs/macos.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 macOS"
2+
CI_DIR=build-macos
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)