Skip to content

Commit 01bf076

Browse files
committed
ci: add NetBSD and OpenIndiana VM jobs
1 parent 676a94f commit 01bf076

2 files changed

Lines changed: 47 additions & 7 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
usesh: true
7474
copyback: false
7575
prepare: |
76-
pkg install -y bash git autoconf automake libtool groff pkgconf
76+
pkg install -y bash git autoconf automake libtool groff pkgconf python3
7777
run: |
7878
set -e
7979
src=$(pwd)
@@ -144,3 +144,49 @@ jobs:
144144
./Configure -n openbsd
145145
make
146146
bash ./check.bash openbsd
147+
148+
netbsd:
149+
runs-on: ubuntu-latest
150+
steps:
151+
- uses: actions/checkout@v7
152+
- name: build and test in a NetBSD vm
153+
uses: vmactions/netbsd-vm@v1
154+
with:
155+
release: "10.2"
156+
copyback: false
157+
prepare: |
158+
/usr/sbin/pkg_add -u bash autoconf automake libtool-base pkgconf
159+
/usr/sbin/pkg_add python3 || true
160+
run: |
161+
set -e
162+
src=$(pwd)
163+
export PATH=/usr/pkg/bin:$PATH
164+
# NetBSD kernel headers are required by Configure and by the
165+
# NetBSD dialect's machine.h.
166+
ftp -o /tmp/syssrc.tgz https://cdn.netbsd.org/pub/NetBSD/NetBSD-10.2/source/sets/syssrc.tgz
167+
tar -xzf /tmp/syssrc.tgz -C /
168+
cd "$src"
169+
autoreconf -vif
170+
./configure
171+
make
172+
make check || { cat test-suite.log; exit 1; }
173+
174+
openindiana:
175+
runs-on: ubuntu-latest
176+
steps:
177+
- uses: actions/checkout@v7
178+
- name: build and test in an OpenIndiana vm
179+
uses: vmactions/openindiana-vm@v1
180+
with:
181+
release: "202610-build"
182+
copyback: false
183+
prepare: |
184+
pkg install --accept shell/bash || true
185+
run: |
186+
set -e
187+
export PATH=/usr/gnu/bin:$PATH
188+
autoreconf -vif
189+
CFLAGS="-std=gnu17" ./configure --disable-shared --enable-static
190+
gmake
191+
rm -f /root/.lsof_openindiana "$HOME/.lsof_openindiana"
192+
gmake check || { cat test-suite.log; exit 1; }

‎Makefile.am‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,6 @@ DIALECT_NEUTRAL_TESTS = tests/case-00-hello.bash \
145145
tests/case-31-jsonl-output.bash
146146
TESTS = $(DIALECT_NEUTRAL_TESTS)
147147

148-
# Run only the dialect-neutral shell tests. This is used on platforms where
149-
# the LT* programs cannot run (for example Solaris CBE without ZFS CTF data).
150-
.PHONY: check-neutral
151-
check-neutral:
152-
$(MAKE) $(AM_MAKEFLAGS) check-TESTS check_PROGRAMS= \
153-
TESTS='$(DIALECT_NEUTRAL_TESTS)'
154148
EXTRA_DIST += $(DIALECT_NEUTRAL_TESTS) \
155149
tests/case-13-classic.bash \
156150
tests/case-14-classic-opt.bash \

0 commit comments

Comments
 (0)