Skip to content

Commit

Permalink
Add FreeBSD and OpenBSD test jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinpeters committed Jun 11, 2024
1 parent da881c0 commit 4fe6920
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ env:
RUSTFLAGS: --deny warnings

jobs:
build-and-test:
build-and-test-macos:
name: Build and test on macOS
strategy:
matrix:
# Keep MSRV in sync with rust-version in Cargo.toml as much as possible.
Expand All @@ -36,11 +37,38 @@ jobs:
# Since the tests modify global state (the system firewall) they cannot run in parallel.
# The integration tests must run as root since they write firewall state (/dev/pf)
run: sudo cargo test -- --test-threads=1

build-and-test-openbsd:
name: Build and test on OpenBSD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests inside an OpenBSD VM
uses: vmactions/openbsd-vm@v1
with:
usesh: true
copyback: false
prepare: |
pkg_add rust
run: |
cargo test -- --test-threads=1
build-and-test-freebsd:
name: Build and test on FreeBSD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests inside a FreeBSD VM
uses: vmactions/freebsd-vm@v1
with:
usesh: true
copyback: false
prepare: |
pkg install -y rust
run: |
cargo test -- --test-threads=1
# Make sure the library builds with all dependencies downgraded to their
# oldest versions allowed by the semver spec. This ensures we have not
# under-specified any dependency
minimal-versions:
minimal-versions-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 4fe6920

Please sign in to comment.