summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-02 17:20:02 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-03 12:13:15 -0500
commit5b8c0174d936a6c89a6e98ceeb22b74cfc27595b (patch)
tree95a6a202a7d4dca5ea466a036921992c5d446dc5 /.github/workflows
parent6435684a7d515e18247ae1b3dd9ec8681fee22d0 (diff)
downloadbfs-5b8c0174d936a6c89a6e98ceeb22b74cfc27595b.tar.xz
ci: Add a NetBSD job
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml35
1 files changed, 34 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ab8805b..68b8dcd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -88,7 +88,7 @@ jobs:
run: |
chown -R action:action .
- su action -c 'gmake -j$(nproc) distcheck CC=clang16 JOBS=-j$(nproc)'
+ sudo -u action gmake -j$(nproc) distcheck CC=clang16 JOBS=-j$(nproc)
openbsd:
name: OpenBSD
@@ -119,3 +119,36 @@ jobs:
chown -R action:action .
jobs=$(sysctl -n hw.ncpu)
doas -u action gmake -j$jobs check JOBS=-j$jobs TEST_FLAGS="--sudo=doas --verbose=skipped"
+
+ netbsd:
+ name: NetBSD
+
+ runs-on: ubuntu-22.04
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Run tests
+ uses: vmactions/netbsd-vm@v1
+ with:
+ release: "9.3"
+ usesh: true
+ copyback: false
+
+ prepare: |
+ PATH="/sbin:/usr/sbin:$PATH"
+ pkg_add \
+ bash \
+ clang \
+ gmake \
+ oniguruma \
+ sudo \
+ tcl-expect
+ useradd -m -G wheel -g =uid action
+ echo "%wheel ALL=(ALL) NOPASSWD: ALL" >>/usr/pkg/etc/sudoers
+
+ run: |
+ PATH="/sbin:/usr/sbin:$PATH"
+ chown -R action:action .
+ jobs=$(sysctl -n hw.ncpu)
+ sudo -u action gmake -j$jobs check CC=clang LDFLAGS="-rpath /usr/pkg/lib" JOBS=-j$jobs TEST_FLAGS="--sudo --verbose=skipped"