Skip to content

Commit ee55900

Browse files
committed
Add Cirrus-CI to test FreeBSD
1 parent 14a8c43 commit ee55900

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.cirrus.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
freebsd_instance:
2+
image_family: freebsd-13-0
3+
4+
env:
5+
RUST_BACKTRACE: full
6+
7+
task:
8+
name: FreeBSD
9+
setup_script:
10+
- pkg install -y curl
11+
- curl https://sh.rustup.rs -sSf --output rustup.sh
12+
- sh rustup.sh -y --profile minimal
13+
cargo_cache:
14+
folder: $HOME/.cargo/registry
15+
build_script:
16+
- . $HOME/.cargo/env
17+
- cargo build
18+
- cargo build --no-default-features
19+
amd64_test_script:
20+
- . $HOME/.cargo/env
21+
- cargo test --all-features
22+
i386_test_script:
23+
- . $HOME/.cargo/env
24+
- rustup target add i686-unknown-freebsd
25+
- cargo test --target i686-unknown-freebsd --all-features
26+
before_cache_script:
27+
- rm -rf $HOME/.cargo/registry/index

0 commit comments

Comments
 (0)