File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed
Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 55 pull_request :
66
77jobs :
8+ build-netbsd :
9+ runs-on : ubuntu-latest
10+ name : build • netbsd ${{ matrix.release }}
11+ defaults :
12+ run :
13+ shell : netbsd {0}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ # Test all supported releases.
18+ # See https://www.netbsd.org/releases/.
19+ include :
20+ - release : 9.4
21+ capnproto-cppflags : ' CPPFLAGS="-DKJ_NO_EXCEPTIONS=0 -DKJ_USE_KQUEUE=0"'
22+ - release : 10.1
23+ capnproto-cppflags : ' CPPFLAGS="-DKJ_NO_EXCEPTIONS=0"'
24+ steps :
25+ - uses : actions/checkout@v6
26+
27+ - name : Start NetBSD VM
28+ uses : vmactions/netbsd-vm@v1
29+ with :
30+ release : ${{ matrix.release }}
31+ prepare : |
32+ pkg_add cmake ninja-build gcc14
33+ # capnproto prerequisites.
34+ # See the following "Install capnproto" step.
35+ run : |
36+ set -e
37+ pkg_add digest libtool-base mktools pkgconf cwrappers
38+ pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities
39+ cd /usr
40+ cvs -danoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P \
41+ pkgsrc/devel/capnproto \
42+ pkgsrc/devel/libtool-base \
43+ pkgsrc/devel/pkgconf \
44+ pkgsrc/devel/zlib \
45+ pkgsrc/lang/gcc15 \
46+ pkgsrc/mk \
47+ pkgsrc/pkgtools \
48+ pkgsrc/security/openssl \
49+ pkgsrc/sysutils/install-sh/files
50+ sync : ' rsync'
51+ copyback : false
52+
53+ - name : Install capnproto
54+ run : |
55+ cd /usr/pkgsrc/devel/capnproto/
56+ unset PKG_PATH
57+ make ${{ matrix.capnproto-cppflags }} install
58+
59+ - name : Run CI script
60+ run : |
61+ cd ${{ github.workspace }}
62+ CI_CONFIG="ci/configs/netbsd.bash" bash ci/scripts/ci.sh
63+
864 build-openbsd :
965 runs-on : ubuntu-latest
1066 name : build • openbsd
Original file line number Diff line number Diff line change 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)
You can’t perform that action at this time.
0 commit comments