Skip to content

Commit

Permalink
ci: use VM to test BSD targets (#528)
Browse files Browse the repository at this point in the history
Add CI jobs for FreeBSD, OpenBSD, and NetBSD.

Solaris is not tested because it lacks pre-compiled host tools.

DragonflyBSD job is currently disabled because cargo fails to update
crates.io index.
  • Loading branch information
newpavlov authored Oct 18, 2024
1 parent f0bf800 commit 6054438
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,64 @@ jobs:
- run: sudo xcode-select -switch /Applications/Xcode_15.2.app
- run: cargo test --no-run --target=aarch64-apple-visionos -Zbuild-std --features=std

freebsd:
name: FreeBSD VM Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
uses: vmactions/freebsd-vm@v1
with:
envs: 'RUSTFLAGS'
usesh: true
prepare: |
pkg install -y rust
run: cargo test

openbsd:
name: OpenBSD VM Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Test in OpenBSD
uses: vmactions/openbsd-vm@v1
with:
envs: 'RUSTFLAGS'
usesh: true
prepare: |
pkg_add rust
run: cargo test

netbsd:
name: NetBSD VM Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Test in NetBSD
uses: vmactions/netbsd-vm@v1
with:
envs: 'RUSTFLAGS'
usesh: true
prepare: |
/usr/sbin/pkg_add rust
run: cargo test

# This job currently fails:
# https://github.com/rust-random/getrandom/actions/runs/11405005618/job/31735653874?pr=528
# dragonflybsd:
# name: DragonflyBSD VM Test
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# - name: Test in DragonflyBSD
# uses: vmactions/dragonflybsd-vm@v1
# with:
# envs: 'RUSTFLAGS'
# usesh: true
# prepare: |
# pkg install -y rust
# run: cargo test

cross-link:
name: Cross Build/Link
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 6054438

Please sign in to comment.