Skip to content

Commit

Permalink
Add NetBSD CI job (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsinsane authored Dec 10, 2024
1 parent 8c84447 commit 863ed69
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,36 @@ jobs:
with:
name: premake-openbsd-${{ matrix.platform }}
path: bin/${{ matrix.config }}/
netbsd:
runs-on: ubuntu-latest
strategy:
matrix:
config: [debug, release]
platform: [x64]
cc: [gcc]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start NetBSD VM
uses: vmactions/netbsd-vm@v1
with:
prepare: |
pkg_add gmake
- name: Build
shell: netbsd {0}
run: |
cd $GITHUB_WORKSPACE
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
- name: Test
shell: netbsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 test --test-all
- name: Docs check
shell: netbsd {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 contrib/curl/lib/config-linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
#define HAVE_GETHOSTBYNAME 1

/* Define to 1 if you have the gethostbyname_r function. */
#if !defined(__OpenBSD__)
#if !defined(__OpenBSD__) && !defined(__NetBSD__)
#define HAVE_GETHOSTBYNAME_R 1
#endif

Expand Down
1 change: 1 addition & 0 deletions contrib/curl/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ project "curl-lib"
local ca = nil
for _, f in ipairs {
"/etc/ssl/certs/ca-certificates.crt",
"/etc/openssl/certs/ca-certificates.crt",
"/etc/pki/tls/certs/ca-bundle.crt",
"/usr/share/ssl/certs/ca-bundle.crt",
"/usr/local/share/certs/ca-root.crt",
Expand Down

0 comments on commit 863ed69

Please sign in to comment.