-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.cirrus.yml
63 lines (59 loc) · 1.39 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
59
60
61
62
63
test: &TEST
cargo_cache:
folder: $CARGO_HOME/registry
build_script:
- . $HOME/.cargo/env || true
- cargo build --all --all-targets
test_script:
- . $HOME/.cargo/env || true
- cargo test --all
before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
matrix:
- name: FreeBSD 14
freebsd_instance:
image: freebsd-14-0-release-amd64-ufs
- name: FreeBSD 13
freebsd_instance:
image: freebsd-13-3-release-amd64
install_script: |
fetch https://sh.rustup.rs -o rustup.sh
sh rustup.sh -y --profile=minimal
<< : *TEST
task:
name: OSX/arm64
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
install_script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
<< : *TEST
task:
name: Linux
container:
image: rust:latest
<< : *TEST
target_cache:
folder: target
fingerprint_script:
- rustc --version
test_task:
name: nightly
depends_on:
- FreeBSD 14
- FreeBSD 13
- OSX/arm64
- Linux
container:
image: rustlang/rust:nightly
cargo_cache:
folder: $CARGO_HOME/registry
build_script: cargo build --all
test_script: cargo test --all
target_cache:
folder: target
fingerprint_script:
- rustc --version
minver_test_script:
- cargo update -Zdirect-minimal-versions
- cargo check --all-targets
before_cache_script: rm -rf $CARGO_HOME/registry/index