Skip to content

Commit 4333bf8

Browse files
author
marco
committed
ci: Add openbsd
1 parent cb170d4 commit 4333bf8

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,36 @@ 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+
env:
33+
CI_CONFIG: ci/configs/openbsd.bash
34+
run: |
35+
cd ${{ github.workspace }}
36+
bash ci/scripts/ci.sh
37+
838
build:
939
runs-on: ubuntu-latest
1040

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)