Skip to content

Commit

Permalink
ci: Add an OmniOS builder
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Jan 9, 2024
1 parent fc4b011 commit 6c9c11c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,34 @@ jobs:
chown -R action:action .
jobs=$(sysctl -n hw.ncpu)
sudo -u action gmake -j$jobs check JOBS=-j$jobs TEST_FLAGS="--sudo --verbose=skipped"
omnios:
name: OmniOS

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Run tests
uses: vmactions/omnios-vm@v1
with:
release: "r151048"
usesh: true
copyback: false

prepare: |
pkg install \
bash \
build-essential \
expect \
gnu-make \
onig \
sudo
useradd -m -g staff action
echo "%staff ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
run: |
chown -R action:staff .
jobs=$(getconf NPROCESSORS_ONLN)
sudo -u action gmake -j$jobs check JOBS=-j$jobs TEST_FLAGS="--sudo --verbose=skipped"

0 comments on commit 6c9c11c

Please sign in to comment.