Skip to content

Commit 89adf09

Browse files
committed
Add NetBSD to CI
1 parent 6647e08 commit 89adf09

4 files changed

Lines changed: 50 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,42 @@ jobs:
361361
usesh: true
362362
prepare: |
363363
pkg_add rust
364+
run: |
365+
cargo build --locked
366+
cargo test --locked
367+
368+
netbsd:
369+
name: NetBSD (QEMU)
370+
needs: [build, format, clippy]
371+
runs-on: ubuntu-latest
372+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
373+
374+
steps:
375+
- uses: actions/checkout@v4
376+
377+
- uses: dorny/paths-filter@668c092af3649c4b664c54e4b704aa46782f6f7c # v2
378+
id: filter
379+
with:
380+
filters: |
381+
rust:
382+
- '**/*.rs'
383+
- '**/Cargo.toml'
384+
- '**/Cargo.lock'
385+
- '.cirrus.star'
386+
- '.github/workflows/main.yml'
387+
- '.cargo/**'
388+
- 'src/**'
389+
- 'tests/**'
390+
- '.github/scripts/smoke-test.sh'
391+
392+
- name: Test on NetBSD
393+
if: steps.filter.outputs.rust == 'true'
394+
uses: vmactions/netbsd-vm@v1
395+
with:
396+
release: "10.1"
397+
usesh: true
398+
prepare: |
399+
/usr/sbin/pkg_add rust
364400
run: |
365401
cargo build --locked
366402
cargo test --locked

CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ Packaging `celq` for Linux, macOS, and Windows is a welcome contribution. If you
5050

5151
## MSRV
5252

53-
The Minimum Supported Rust Version (MSRV) of `celq` trys to align with the MSRV of Debian testing, FreeBSD ports, and OpenBSD.
53+
The Minimum Supported Rust Version (MSRV) of `celq` trys to align with the MSRV of Debian testing, FreeBSD ports, OpenBSD, and NetBSD.
5454

5555
To see their current MSRV, search for:
5656
* [rustc in Debian Packages](https://packages.debian.org/search?keywords=rustc) and see the version listed for testing.
5757
* [lang/rust in FreeBSD ports](https://www.freshports.org/lang/rust) and see the version listed for quarterly releases for `amd64` and `aarch64`
5858
* [ports/lang/rust in OpenBSD ports](https://cvsweb.openbsd.org/ports/lang/rust/Makefile) and see the latest version with a `CVS Tags` of the format `OPENBSD_X_Y`
59+
* [pkgsrc/lang/rust for NetBSD](https://github.com/NetBSD/pkgsrc/blob/trunk/lang/rust/Makefile) and see the version in the latest quarterly branch e.g. `pkgsrc-20XYQZ`
5960

60-
We use the minimum version among the two.
61+
We use the minimum version among the four.
6162

62-
Notice that eventually that may lag behind the latest of rustc by a considerable margin. However, that guarantees that `celq` can be packaged by many Linux distributions, FreeBSD, and OpenBSD.
63+
Notice that eventually that may lag behind the latest of rustc by a considerable margin. However, that guarantees that `celq` can be packaged by many Linux distributions, FreeBSD, OpenBSD, and NetBSD.

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ su root -c 'install -m 755 celq /usr/local/bin/'
166166

167167
### OpenBSD
168168

169-
OpenBSD builds are tested in CI using the latest stable release. `celq` strives to always compile with the Rust version provided in the ports tree. Refer to the [Cargo](#cargo) section for instructions.
169+
OpenBSD builds are tested in CI using the latest stable release. `celq` strives to always compile with the Rust version provided in the ports tree. Refer to the [Cargo](#cargo) section for installation instructions.
170+
171+
### NetBSD
172+
173+
NetBSD builds are tested in CI against the latest stable release. `celq` aims to remain compatible with the Rust version provided by the NetBSD pkgsrc quarterly branch. See the [Cargo](#cargo) section for installation instructions.
170174

171175
### NPM (Node.js/JavaScript)
172176

docs/installation_guide.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,11 @@ su root -c 'install -m 755 celq /usr/local/bin/'
176176

177177
### OpenBSD
178178

179-
OpenBSD builds are tested in CI using the latest stable release. `celq` strives to always compile with the Rust version provided in the ports tree. Refer to the [Cargo](#cargo) section for instructions.
179+
OpenBSD builds are tested in CI using the latest stable release. `celq` strives to always compile with the Rust version provided in the ports tree. Refer to the [Cargo](#cargo) section for installation instructions.
180+
181+
### NetBSD
182+
183+
NetBSD builds are tested in CI against the latest stable release. `celq` aims to remain compatible with the Rust version provided by the NetBSD pkgsrc quarterly branch. See the [Cargo](#cargo) section for installation instructions.
180184

181185
### NPM (Node.js/JavaScript)
182186

0 commit comments

Comments
 (0)