Skip to content

Commit d77b8e7

Browse files
committed
ci: Add testing for NetBSD
The x86-64 NetBSD target is tier 2, so we can start testing it.
1 parent b4cb730 commit d77b8e7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ jobs:
270270
matrix:
271271
include:
272272
- target: x86_64-pc-solaris
273+
- target: x86_64-unknown-netbsd
273274
timeout-minutes: 25
274275
steps:
275276
- uses: actions/checkout@v5
@@ -290,6 +291,26 @@ jobs:
290291
export PATH=$HOME/.rust_solaris/bin:$PATH
291292
./ci/run.sh ${{ matrix.target }}
292293
294+
- name: Test on NetBSD
295+
uses: vmactions/netbsd-vm@v1
296+
if: contains(matrix.target, 'netbsd')
297+
with:
298+
release: "10.1"
299+
usesh: true
300+
mem: 4096
301+
copyback: false
302+
prepare: |
303+
set -x
304+
/usr/sbin/pkg_add curl
305+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
306+
--profile minimal --default-toolchain nightly -y
307+
run: |
308+
set -x
309+
. "$HOME/.cargo/env"
310+
which rustc
311+
rustc -Vv
312+
./ci/run.sh ${{ matrix.target }}
313+
293314
ctest_msrv:
294315
name: Check ctest MSRV
295316
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)