From 5852983f421d865d4e7092fe72c105e279cf4b46 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 23 Aug 2025 14:45:58 +0100 Subject: [PATCH] ci: Add NetBSD job Add `pkg-config` package --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ ci/configs/netbsd.bash | 6 ++++++ 2 files changed, 28 insertions(+) create mode 100644 ci/configs/netbsd.bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55bab53..2b27de0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,28 @@ on: pull_request: jobs: + build-netbsd: + runs-on: ubuntu-latest + name: build • netbsd + defaults: + run: + shell: netbsd {0} + steps: + - uses: actions/checkout@v5 + + - name: Start NetBSD VM + uses: vmactions/netbsd-vm@v1 + with: + prepare: | + pkg_add cmake ninja-build gcc14 pkg-config capnproto bash + sync: 'rsync' + copyback: false + + - name: Run CI script + run: | + cd ${{ github.workspace }} + CI_CONFIG="ci/configs/netbsd.bash" bash ci/scripts/ci.sh + build-openbsd: runs-on: ubuntu-latest name: build • openbsd diff --git a/ci/configs/netbsd.bash b/ci/configs/netbsd.bash new file mode 100644 index 0000000..48b9656 --- /dev/null +++ b/ci/configs/netbsd.bash @@ -0,0 +1,6 @@ +CI_DESC="CI config for NetBSD" +CI_DIR=build-netbsd +export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter" +export CXX="/usr/pkg/gcc14/bin/g++" +CMAKE_ARGS=(-G Ninja) +BUILD_ARGS=(-k 0)