diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-01-02 10:26:07 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-01-02 14:04:03 -0500 |
commit | 683f2c41c72efcb82ce866e3dcc311ac9bd8b66d (patch) | |
tree | 4a953b81f54f1a7b7489bfa6d0e5bf7ae8df85da /.github | |
parent | 79f1521b0e628be72bed3a648f0ae90b62fc69b8 (diff) | |
download | bfs-683f2c41c72efcb82ce866e3dcc311ac9bd8b66d.tar.xz |
ci: Add an OpenBSD job
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 701eafc..ab8805b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,3 +89,33 @@ jobs: run: | chown -R action:action . su action -c 'gmake -j$(nproc) distcheck CC=clang16 JOBS=-j$(nproc)' + + openbsd: + name: OpenBSD + + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + + - name: Run tests + uses: vmactions/openbsd-vm@v1 + with: + release: "7.4" + usesh: true + copyback: false + + prepare: | + pkg_add \ + bash \ + expect \ + gmake \ + oniguruma + adduser -group USER -batch action wheel </dev/null + cp /etc/examples/doas.conf /etc/doas.conf + echo "permit nopass keepenv :wheel" >>/etc/doas.conf + + run: | + 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" |