-
Notifications
You must be signed in to change notification settings - Fork 19
/
.cirrus.yml
58 lines (53 loc) · 1.81 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
build: &BUILD
cargo_cache:
folder: $HOME/.cargo/registry
fingerprint_script: cat Cargo.lock || echo ""
build_script:
- . $HOME/.cargo/env || true
- rustup component add clippy
- cargo check --all-targets --features=tokio-runtime,file-lock,unprivileged
- cargo check --all-targets --features=async-io-runtime,file-lock,unprivileged
# - RUSTDOCFLAGS="--cfg docsrs" cargo doc --features=file-lock,unprivileged,tokio-runtime # disable until doc_cfg and doc_auto_cfg are stable
- cargo doc --features=file-lock,unprivileged,tokio-runtime
- cargo clippy --all-targets --features=tokio-runtime,file-lock,unprivileged
- cargo clippy --all-targets --features=async-io-runtime,file-lock,unprivileged
before_cache_script: rm -rf $HOME/.cargo/registry/index
task:
name: FreeBSD
freebsd_instance:
image: freebsd-13-3-release-amd64
setup_script:
- fetch https://sh.rustup.rs -o rustup.sh
- sh rustup.sh -y --profile=minimal
- . $HOME/.cargo/env
<< : *BUILD
task:
name: MacOS
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-base:latest
setup_script:
- curl https://sh.rustup.rs -o rustup.sh
- sh rustup.sh -y --profile=minimal
- . $HOME/.cargo/env
<< : *BUILD
task:
name: Linux
container:
image: rust:latest
<< : *BUILD
minver_task:
depends_on:
- FreeBSD
- Linux
- MacOS
freebsd_instance:
image: freebsd-13-2-release-amd64
setup_script:
- fetch https://sh.rustup.rs -o rustup.sh
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
- . $HOME/.cargo/env
test_script:
- . $HOME/.cargo/env || true
- cargo update -Zdirect-minimal-versions
- cargo check --all-targets --features=tokio-runtime,file-lock,unprivileged
- cargo check --all-targets --features=async-io-runtime,file-lock,unprivileged