Skip to content

Commit 7c20fc2

Browse files
committed
Add OmniOS CI job
1 parent d415cb6 commit 7c20fc2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,44 @@ jobs:
326326
with:
327327
name: premake-solaris-${{ matrix.platform }}
328328
path: bin/${{ matrix.config }}/
329+
omnios:
330+
runs-on: ubuntu-latest
331+
strategy:
332+
matrix:
333+
config: [debug, release]
334+
platform: [x64]
335+
cc: [gcc]
336+
timeout-minutes: 30
337+
defaults:
338+
run:
339+
shell: omnios {0}
340+
steps:
341+
- name: Checkout
342+
uses: actions/checkout@v4
343+
- name: Start OmniOS VM
344+
uses: vmactions/omnios-vm@v1
345+
with:
346+
usesh: true
347+
prepare: |
348+
pkg install omnios-build-tools
349+
- name: Build
350+
run: |
351+
cd $GITHUB_WORKSPACE
352+
CC=${{ matrix.cc }} PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
353+
- name: Test
354+
run: |
355+
cd $GITHUB_WORKSPACE
356+
bin/${{ matrix.config }}/premake5 test --test-all
357+
- name: Docs check
358+
run: |
359+
cd $GITHUB_WORKSPACE
360+
bin/${{ matrix.config }}/premake5 docs-check
361+
- name: Upload Artifacts
362+
if: matrix.config == 'release' && matrix.cc == 'gcc'
363+
uses: actions/upload-artifact@v4
364+
with:
365+
name: premake-omnios-${{ matrix.platform }}
366+
path: bin/${{ matrix.config }}/
329367

330368
# This job will be required for PRs to be merged.
331369
# This should depend on (via needs) all jobs that need to be successful for the PR to be merged.

0 commit comments

Comments
 (0)