Skip to content

Commit 78481e8

Browse files
feat(portability): add support for OpenBSD (#1392)
1 parent 2752748 commit 78481e8

File tree

5 files changed

+220
-52
lines changed

5 files changed

+220
-52
lines changed

.github/workflows/validation.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ jobs:
309309
nproc
310310
sysctl -a | grep ' memory' | head -2
311311
df -h
312+
df
313+
echo "${TERM:-TERM is not found}"
314+
commmand -v tput
315+
tput colors
312316
date -u
313317
run: |
314318
sh -x ./test/test_nodebuilder --ref "${GITHUB_SHA}"
@@ -320,6 +324,45 @@ jobs:
320324
name: freebsd-source-bitcoin-debug.log
321325
path: /home/runner/work/nodebuilder/nodebuilder/debug.log
322326

327+
run-nodebuilder-openbsd:
328+
name: Test source on OpenBSD
329+
needs: [changes, shell-lint, yaml-lint]
330+
if: >-
331+
${{
332+
github.event.action == 'prerelease' ||
333+
github.event.action == 'published' ||
334+
needs.changes.outputs.ci == 'true' ||
335+
needs.changes.outputs.dependencies == 'true' ||
336+
needs.changes.outputs.shell == 'true'
337+
}}
338+
runs-on: ubuntu-latest
339+
steps:
340+
- uses: actions/checkout@v4
341+
- name: Test the console output
342+
uses: vmactions/openbsd-vm@v1
343+
timeout-minutes: 180
344+
with:
345+
prepare: |
346+
uname -a
347+
sysctl hw.ncpu
348+
sysctl -a | grep 'hw.physmem\|hw.usermem'
349+
df -h
350+
df
351+
echo "${TERM:-TERM is not found}"
352+
commmand -v tput
353+
tput colors
354+
date -u
355+
run: |
356+
sh -x ./test/test_nodebuilder --ref "${GITHUB_SHA}"
357+
[ "$?" -gt 0 ] && echo "test_nodebuilder exited with status $?" >&2 && exit 1
358+
[ -f "/home/bitcoin/.bitcoin/debug.log" ] && cp "/home/bitcoin/.bitcoin/debug.log" .
359+
find / -name debug.log 2> /dev/null | grep bitcoin || true
360+
- name: Save Bitcoin Core log as artifact
361+
uses: actions/upload-artifact@v4
362+
with:
363+
name: openbsd-source-bitcoin-debug.log
364+
path: /home/runner/work/nodebuilder/nodebuilder/debug.log
365+
323366
run-nodebuilder-docker:
324367
name: Docker image for ${{ matrix.container }}
325368
needs: [changes, dockerfile-lint, shell-lint, yaml-lint]

0 commit comments

Comments
 (0)