Skip to content

Commit

Permalink
add NetBSD CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
snshn committed Sep 25, 2024
1 parent f6e8eaa commit 3b5900b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/ci-netbsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# CI NetBSD GitHub Actions workflow for monolith

name: CI

on:
pull_request:
branches: [ master ]
paths-ignore:
- 'assets/'
- 'dist/'
- 'snap/'
- 'Dockerfile'
- 'LICENSE'
- 'Makefile'
- 'monolith.nuspec'
- 'README.md'

jobs:
build_and_test:
runs-on: ubuntu-latest
name: Build and test (netbsd)
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: Test in NetBSD
uses: vmactions/netbsd-vm@v1
with:
usesh: true
prepare: |
/usr/sbin/pkg_add rust mktools gmake pkgconf cwrappers
run: |
cargo build --all --locked --verbose --no-default-features
cargo test --all --locked --verbose --no-default-features
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:

jobs:
build_and_test:
name: Build and test
strategy:
matrix:
os:
Expand All @@ -31,7 +32,8 @@ jobs:
steps:
- run: git config --global core.autocrlf false

- uses: actions/checkout@v2
- name: "Checkout repository"
uses: actions/checkout@v4

- name: Build
run: cargo build --all --locked --verbose
Expand Down

0 comments on commit 3b5900b

Please sign in to comment.