| 1 |
# Run cargo tests in a NetBSD VM. This needs to run on one of the GitHub macos runners, because |
| 2 |
# they are currently the only ones to support virtualization. |
| 3 |
# |
| 4 |
# See https://github.com/vmactions/netbsd-vm |
| 5 |
# |
| 6 |
# The standard filesystem on NetBSD installs, ffs, doesn't support extended attributes. The |
| 7 |
# filesystem type needs to be set fo FFSv2ea (on NetBSD 10 or later) for this to be enabled. |
| 8 |
# See http://wikimirror.netbsd.de/tutorials/acls_and_extended_attributes_on_ffs/ |
| 9 |
|
| 10 |
# Disabled until NetBSD 10 is released and available via vmactions |
| 11 |
on: workflow_dispatch |
| 12 |
|
| 13 |
name: netbsd |
| 14 |
|
| 15 |
jobs: |
| 16 |
test: |
| 17 |
runs-on: ubuntu-22.04 |
| 18 |
steps: |
| 19 |
- uses: actions/checkout@v4 |
| 20 |
- name: Run tests in NetBSD VM |
| 21 |
uses: vmactions/netbsd-vm@v1 |
| 22 |
with: |
| 23 |
usesh: true |
| 24 |
prepare: | |
| 25 |
/usr/sbin/pkg_add curl |
| 26 |
curl https://sh.rustup.rs -sSf --output rustup.sh |
| 27 |
sh rustup.sh -y --profile minimal --default-toolchain stable |
| 28 |
export PATH="${HOME}/.cargo/bin:$PATH" |
| 29 |
echo "~~~~ rustc --version ~~~~" |
| 30 |
rustc --version |
| 31 |
|
| 32 |
run: | |
| 33 |
export PATH="${HOME}/.cargo/bin:$PATH" |
| 34 |
ls -la |
| 35 |
cargo build --verbose |
| 36 |
cargo test --verbose |