Skip to content

Commit d23e4e4

Browse files
delta4chatdjc
authored andcommitted
CI: add test for netbsd
1 parent bb4df4d commit d23e4e4

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

.github/workflows/rust.yml

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,40 @@ jobs:
2626
pkg install -y curl
2727
curl https://sh.rustup.rs -sSf --output rustup.sh
2828
sh rustup.sh -y --profile minimal --default-toolchain stable
29-
echo "~~~~ rustc --version ~~~~"
30-
$HOME/.cargo/bin/rustc --version
31-
echo "~~~~ freebsd-version ~~~~"
29+
run: |
30+
export PATH="$HOME/.cargo/bin:$PATH"
31+
echo "===== rustc --version ====="
32+
rustc --version
33+
echo "===== freebsd-version ====="
3234
freebsd-version
33-
run: $HOME/.cargo/bin/cargo build --all-targets && $HOME/.cargo/bin/cargo test && $HOME/.cargo/bin/cargo test --manifest-path fuzz/Cargo.toml && $HOME/.cargo/bin/cargo test -p quinn-udp --benches
35+
36+
cargo build --all-targets && cargo test && cargo test --manifest-path fuzz/Cargo.toml && cargo test -p quinn-udp --benches
37+
38+
test-netbsd:
39+
name: test on netbsd
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
- name: test on netbsd
44+
uses: vmactions/netbsd-vm@v1
45+
with:
46+
usesh: true
47+
mem: 4096
48+
copyback: false
49+
prepare: |
50+
export PATH="/usr/sbin:/sbin:$PATH"
51+
pkg_add curl
52+
curl https://sh.rustup.rs -sSf --output rustup.sh
53+
sh rustup.sh -y --profile minimal --default-toolchain stable
54+
run: |
55+
export PATH="$HOME/.cargo/bin:$PATH"
56+
echo "===== rustc --version ====="
57+
rustc --version
58+
echo "===== uname -a ====="
59+
uname -a
60+
61+
cargo build --all-targets && cargo test && cargo test --manifest-path fuzz/Cargo.toml && cargo test -p quinn-udp --benches
62+
3463
test:
3564
strategy:
3665
matrix:

0 commit comments

Comments
 (0)