Skip to content

Commit 7c070e2

Browse files
committed
Add Cirrus/vmactions targets
1 parent 12f940f commit 7c070e2

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

.cirrus.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
only_if: $CIRRUS_TAG == '' && ($CIRRUS_PR != '' || $CIRRUS_BRANCH == 'master')
2+
auto_cancellation: $CIRRUS_BRANCH != 'master'
3+
env:
4+
CARGO_INCREMENTAL: '0'
5+
CARGO_NET_GIT_FETCH_WITH_CLI: 'true'
6+
CARGO_NET_RETRY: '10'
7+
CARGO_TERM_COLOR: always
8+
RUST_BACKTRACE: '1'
9+
RUSTDOCFLAGS: -D warnings
10+
RUSTFLAGS: -D warnings
11+
RUSTUP_MAX_RETRIES: '10'
12+
13+
freebsd_task:
14+
name: test ($TARGET)
15+
freebsd_instance:
16+
image_family: freebsd-12-4
17+
matrix:
18+
- env:
19+
TARGET: x86_64-unknown-freebsd
20+
- env:
21+
TARGET: i686-unknown-freebsd
22+
setup_script:
23+
- pkg install -y git
24+
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target $TARGET
25+
test_script:
26+
- . $HOME/.cargo/env
27+
- cargo test --target $TARGET

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,55 @@ jobs:
104104
rustup target add x86_64-unknown-illumos
105105
cargo build --target x86_64-unknown-illumos
106106
107+
netbsd:
108+
runs-on: macos-12
109+
steps:
110+
- uses: actions/checkout@v3
111+
- name: Test NetBSD
112+
id: test
113+
uses: vmactions/netbsd-vm@v0
114+
with:
115+
envs: CARGO_INCREMENTAL CARGO_NET_GIT_FETCH_WITH_CLI CARGO_NET_RETRY RUST_BACKTRACE RUSTFLAGS RUSTDOCFLAGS RUSTUP_MAX_RETRIES
116+
usesh: true
117+
prepare: |
118+
pkg_add curl git
119+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
120+
run: |
121+
. $HOME/.cargo/env
122+
cargo test
123+
124+
openbsd:
125+
runs-on: macos-12
126+
steps:
127+
- uses: actions/checkout@v3
128+
- name: Test OpenBSD
129+
id: test
130+
uses: vmactions/openbsd-vm@v0
131+
with:
132+
envs: CARGO_INCREMENTAL CARGO_NET_GIT_FETCH_WITH_CLI CARGO_NET_RETRY RUST_BACKTRACE RUSTFLAGS RUSTDOCFLAGS RUSTUP_MAX_RETRIES
133+
usesh: true
134+
# OpenBSD is tier 3 target, so install rust from package manager instead of rustup
135+
prepare: |
136+
pkg_add git rust
137+
run: |
138+
cargo test
139+
140+
dragonfly:
141+
runs-on: macos-12
142+
steps:
143+
- uses: actions/checkout@v3
144+
- name: Test Dragonfly BSD
145+
id: test
146+
uses: vmactions/dragonflybsd-vm@v0
147+
with:
148+
envs: CARGO_INCREMENTAL CARGO_NET_GIT_FETCH_WITH_CLI CARGO_NET_RETRY RUST_BACKTRACE RUSTFLAGS RUSTDOCFLAGS RUSTUP_MAX_RETRIES
149+
usesh: true
150+
# Dragonfly BSD is tier 3 target, so install rust from package manager instead of rustup
151+
prepare: |
152+
pkg install -y git rust
153+
run: |
154+
cargo test
155+
107156
msrv:
108157
runs-on: ${{ matrix.os }}
109158
strategy:

0 commit comments

Comments
 (0)