Simple CI setup for NetBSD

This commit is contained in:
Andreas T Jonsson
2024-04-25 12:46:55 +02:00
parent ce80c37c75
commit 101abb3004
3 changed files with 50 additions and 24 deletions
+22
View File
@@ -2,6 +2,28 @@ name: CI
on: [push, pull_request, workflow_dispatch] on: [push, pull_request, workflow_dispatch]
jobs: 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: build_linux:
name: Ubuntu Build, Check, and Test name: Ubuntu Build, Check, and Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
+4 -2
View File
@@ -3,7 +3,10 @@ PYTHON=$(shell which python3)
COMMON=-vet -strict-style COMMON=-vet -strict-style
COLLECTION=-collection:tests=.. COLLECTION=-collection:tests=..
all: c_libc_test \ all: all_bsd \
net_test
all_bsd: c_libc_test \
compress_test \ compress_test \
container_test \ container_test \
crypto_test \ crypto_test \
@@ -17,7 +20,6 @@ all: c_libc_test \
linalg_glsl_math_test \ linalg_glsl_math_test \
match_test \ match_test \
math_test \ math_test \
net_test \
noise_test \ noise_test \
os_exit_test \ os_exit_test \
reflect_test \ reflect_test \
+3 -1
View File
@@ -1,6 +1,8 @@
ODIN=../../odin 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: rtti_test:
$(ODIN) run test_rtti.odin -file -vet -strict-style -o:minimal $(ODIN) run test_rtti.odin -file -vet -strict-style -o:minimal