Skip to content

Commit

Permalink
Added FreeBSD CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
samsinsane committed Dec 4, 2024
1 parent 7f2a0c8 commit 09dd577
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,25 @@ jobs:
with:
name: premake-cosmopolitan-universal
path: bin/${{ matrix.config }}/premake5
freebsd:
runs-on: ubuntu-latest
strategy:
matrix:
config: [debug, release]
platform: [x64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test in FreeBSD
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y gmake
run: |
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} ./Bootstrap.sh
bin/${{ matrix.config }}/premake5 test --test-all
bin/${{ matrix.config }}/premake5 docs-check
# This job will be required for PRs to be merged.
# This should depend on (via needs) all jobs that need to be successful for the PR to be merged.
Expand Down
2 changes: 1 addition & 1 deletion Bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ case "$(uname -s)" in
;;
FreeBSD|OpenBSD|NetBSD)
NPROC=$(sysctl -n hw.ncpu)
make -f Bootstrap.mak ${COSMO_FLAG:-bsd} $PLATFORM_ARG $CONFIG_ARG $PREMAKE_OPTS_ARG -j$NPROC
gmake -f Bootstrap.mak ${COSMO_FLAG:-bsd} $PLATFORM_ARG $CONFIG_ARG $PREMAKE_OPTS_ARG -j$NPROC
;;
CYGWIN*|MINGW32*|MSYS*|MINGW*)
make -f Bootstrap.mak ${COSMO_FLAG:-mingw} $PLATFORM_ARG $CONFIG_ARG $PREMAKE_OPTS_ARG -j$NPROC
Expand Down

0 comments on commit 09dd577

Please sign in to comment.