Skip to content

Commit 98414e7

Browse files
author
marco
committed
ci: Add openbsd
1 parent cb170d4 commit 98414e7

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/ci.yml

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

77
jobs:
8+
build-openbsd:
9+
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
shell: openbsd {0}
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Start OpenBSD VM
17+
uses: vmactions/openbsd-vm@v1
18+
with:
19+
prepare: |
20+
pkg_add -v cmake ninja git python bash
21+
run: |
22+
git clone --depth=1 https://codeberg.org/OpenBSD/ports.git /usr/ports
23+
sync: 'rsync'
24+
copyback: false
25+
26+
- name: Install capnproto
27+
run: |
28+
cd /usr/ports/devel/capnproto/
29+
make install
30+
31+
- name: Run CI script
32+
run: |
33+
cd ${{ github.workspace }}
34+
CI_CONFIG="ci/configs/openbsd.bash" bash ci/scripts/ci.sh
35+
836
build:
937
runs-on: ubuntu-latest
1038

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