Skip to content

Commit 54e9ea6

Browse files
committed
ci: Add testing for NetBSD
The x86-64 NetBSD target is tier 2, so we can start testing it. (backport <#4782>) (cherry picked from commit d77b8e7)
1 parent 0dd9097 commit 54e9ea6

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
@@ -261,6 +261,7 @@ jobs:
261261
matrix:
262262
include:
263263
- target: x86_64-pc-solaris
264+
- target: x86_64-unknown-netbsd
264265
timeout-minutes: 25
265266
steps:
266267
- uses: actions/checkout@v5
@@ -281,6 +282,26 @@ jobs:
281282
export PATH=$HOME/.rust_solaris/bin:$PATH
282283
./ci/run.sh ${{ matrix.target }}
283284
285+
- name: Test on NetBSD
286+
uses: vmactions/netbsd-vm@v1
287+
if: contains(matrix.target, 'netbsd')
288+
with:
289+
release: "10.1"
290+
usesh: true
291+
mem: 4096
292+
copyback: false
293+
prepare: |
294+
set -x
295+
/usr/sbin/pkg_add curl
296+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
297+
--profile minimal --default-toolchain nightly -y
298+
run: |
299+
set -x
300+
. "$HOME/.cargo/env"
301+
which rustc
302+
rustc -Vv
303+
./ci/run.sh ${{ matrix.target }}
304+
284305
docs:
285306
name: Ensure docs build
286307
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)