Skip to content

Commit

Permalink
ci: Add an OpenBSD job
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Jan 2, 2024
1 parent 45d2dd8 commit de3834a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,32 @@ 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

prepare: |
pkg_add \
bash \
expect \
gmake \
oniguruma
adduser -group USER -batch action wheel
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 distcheck JOBS=-j$jobs DISTCHECK_FLAGS='-s TEST_FLAGS="--sudo=doas --verbose=skipped"'

0 comments on commit de3834a

Please sign in to comment.