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 147ec5e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,37 @@ 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: Start FreeBSD VM
uses: vmactions/freebsd-vm@v1
with:
usesh: true
sync: sshfs
prepare: |
pkg install -y gmake ca_root_nss
- name: Build
shell: freebsd {0}
run: |
cd $GITHUB_WORKSPACE
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=clang" ./Bootstrap.sh
- name: Test
shell: freebsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 test --test-all
- name: Docs check
shell: freebsd {0}
run: |
cd $GITHUB_WORKSPACE
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
1 change: 1 addition & 0 deletions contrib/curl/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ project "curl-lib"
break
end
end
print(string.format("Using CA located at '%s'", ca))
if ca then
defines { 'CURL_CA_BUNDLE="' .. ca .. '"', 'CURL_CA_PATH="' .. path.getdirectory(ca) .. '"' }
end

0 comments on commit 147ec5e

Please sign in to comment.