diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cbe8ad23..b34cc6a78 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,28 @@ name: CI on: [push, pull_request, workflow_dispatch] jobs: + build_netbsd: + name: NetBSD Build, Check, and Test + runs-on: ubuntu-latest + env: + PKGSRC_BRANCH: 2024Q1 + steps: + - uses: actions/checkout@v4 + - name: Build and Test + id: netbsd + uses: vmactions/netbsd-vm@v1 + with: + release: "10.0" + envs: PKGSRC_BRANCH + usesh: true + copyback: false + prepare: | + export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r | cut -d_ -f1)_${PKGSRC_BRANCH}/All" /usr/sbin/pkg_add pkgin + pkgin -y in llvm clang gmake git bash + run: | + gmake release + (cd tests/core; gmake) + (cd tests/internal; gmake) build_linux: name: Ubuntu Build, Check, and Test runs-on: ubuntu-latest diff --git a/tests/core/Makefile b/tests/core/Makefile index dcb3c9906..d702c4e1d 100644 --- a/tests/core/Makefile +++ b/tests/core/Makefile @@ -3,29 +3,31 @@ PYTHON=$(shell which python3) COMMON=-vet -strict-style COLLECTION=-collection:tests=.. -all: c_libc_test \ - compress_test \ - container_test \ - crypto_test \ - download_test_assets \ - encoding_test \ - filepath_test \ - fmt_test \ - hash_test \ - i18n_test \ - image_test \ - linalg_glsl_math_test \ - match_test \ - math_test \ - net_test \ - noise_test \ - os_exit_test \ - reflect_test \ - slice_test \ - strings_test \ - thread_test \ - runtime_test \ - time_test +all: all_bsd \ + net_test + +all_bsd: c_libc_test \ + compress_test \ + container_test \ + crypto_test \ + download_test_assets \ + encoding_test \ + filepath_test \ + fmt_test \ + hash_test \ + i18n_test \ + image_test \ + linalg_glsl_math_test \ + match_test \ + math_test \ + noise_test \ + os_exit_test \ + reflect_test \ + slice_test \ + strings_test \ + thread_test \ + runtime_test \ + time_test download_test_assets: $(PYTHON) download_assets.py diff --git a/tests/internal/Makefile b/tests/internal/Makefile index c5c612cdd..e892c3145 100644 --- a/tests/internal/Makefile +++ b/tests/internal/Makefile @@ -1,6 +1,8 @@ ODIN=../../odin -all: rtti_test map_test pow_test 128_test asan_test +all: all_bsd asan_test + +all_bsd: rtti_test map_test pow_test 128_test rtti_test: $(ODIN) run test_rtti.odin -file -vet -strict-style -o:minimal