Skip to content

Commit 4c06658

Browse files
committed
ci: Add NetBSD job
Add `pkg-config` package
1 parent 1b8d4a6 commit 4c06658

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ on:
55
pull_request:
66

77
jobs:
8+
build-netbsd:
9+
runs-on: ubuntu-latest
10+
name: build • netbsd
11+
defaults:
12+
run:
13+
shell: netbsd {0}
14+
steps:
15+
- uses: actions/checkout@v5
16+
17+
- name: Start NetBSD VM
18+
uses: vmactions/netbsd-vm@v1
19+
with:
20+
prepare: |
21+
pkg_add cmake ninja-build gcc14 pkg-config capnproto bash
22+
sync: 'rsync'
23+
copyback: false
24+
25+
- name: Run CI script
26+
run: |
27+
cd ${{ github.workspace }}
28+
CI_CONFIG="ci/configs/netbsd.bash" bash ci/scripts/ci.sh
29+
830
build-openbsd:
931
runs-on: ubuntu-latest
1032
name: build • openbsd

ci/configs/netbsd.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CI_DESC="CI config for NetBSD"
2+
CI_DIR=build-netbsd
3+
export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter"
4+
export CXX="/usr/pkg/gcc14/bin/g++"
5+
CMAKE_ARGS=(-G Ninja)
6+
BUILD_ARGS=(-k 0)

0 commit comments

Comments
 (0)