File tree Expand file tree Collapse file tree 4 files changed +36
-2
lines changed Expand file tree Collapse file tree 4 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
7
7
jobs :
8
+ build-openbsd :
9
+ runs-on : ubuntu-latest
10
+ name : build • openbsd
11
+ defaults :
12
+ run :
13
+ shell : openbsd {0}
14
+ steps :
15
+ - uses : actions/checkout@v5
16
+
17
+ - name : Start OpenBSD VM
18
+ uses : vmactions/openbsd-vm@v1
19
+ with :
20
+ prepare : |
21
+ pkg_add -v cmake ninja git python bash
22
+ run : |
23
+ git clone --depth=1 https://codeberg.org/OpenBSD/ports.git /usr/ports
24
+ sync : ' rsync'
25
+ copyback : false
26
+
27
+ - name : Install capnproto
28
+ run : |
29
+ cd /usr/ports/devel/capnproto/
30
+ make install
31
+
32
+ - name : Run CI script
33
+ run : |
34
+ cd ${{ github.workspace }}
35
+ CI_CONFIG="ci/configs/openbsd.bash" bash ci/scripts/ci.sh
36
+
8
37
build :
9
38
runs-on : ubuntu-latest
10
39
16
45
name : build • ${{ matrix.config }}
17
46
18
47
steps :
19
- - uses : actions/checkout@v4
48
+ - uses : actions/checkout@v5
20
49
21
50
- name : Install Nix
22
51
uses : cachix/install-nix-action@v31 # 2025-05-27, from https://github.com/cachix/install-nix-action/tags
Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change @@ -24,6 +24,5 @@ add_executable(mpexample
24
24
target_capnp_sources(mpexample ${CMAKE_CURRENT_SOURCE_DIR} init.capnp calculator.capnp printer.capnp)
25
25
target_include_directories (mpexample PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
26
26
target_link_libraries (mpexample PRIVATE Threads::Threads)
27
- target_link_libraries (mpexample PRIVATE stdc++fs)
28
27
29
28
add_custom_target (mpexamples DEPENDS mpexample mpcalculator mpprinter)
Original file line number Diff line number Diff line change 16
16
#include < sys/socket.h>
17
17
#include < sys/wait.h>
18
18
#include < system_error>
19
+ #include < thread> // NOLINT(misc-include-cleaner) // IWYU pragma: keep
19
20
#include < unistd.h>
20
21
#include < utility>
21
22
#include < vector>
You can’t perform that action at this time.
0 commit comments