forked from PyO3/maturin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
79 lines (75 loc) · 1.92 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
env:
RUST_BACKTRACE: 1
build_and_test: &BUILD_AND_TEST
# only run tasks on pull request or bors related branches
only_if: $CIRRUS_BRANCH == 'staging' || $CIRRUS_BRANCH == 'trying' || $CIRRUS_PR != ""
setup_script:
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y --default-toolchain stable
- rustup target add wasm32-wasi
- python3 -m pip install --upgrade cffi virtualenv
build_script:
- cargo build
test_script:
- cargo test
freebsd_task:
name: Test (x86_64 FreeBSD)
freebsd_instance:
image_family: freebsd-13-1
env:
PATH: $HOME/.cargo/bin:$PATH
registry_cache:
folder: $HOME/.cargo/registry
fingerprint_script:
- echo $CIRRUS_OS
- cat Cargo.lock
target_cache:
folder: target
fingerprint_script:
- echo $CIRRUS_OS
- cat Cargo.lock
install_script:
- pkg install -y curl bash python
- python3 -m ensurepip
<<: *BUILD_AND_TEST
macos_arm64_task:
name: Test (arm64 macOS)
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode
env:
PATH: $HOME/.cargo/bin:/opt/homebrew/opt/[email protected]/bin:$PATH
registry_cache:
folder: $HOME/.cargo/registry
fingerprint_script:
- echo $CIRRUS_OS
- cat Cargo.lock
target_cache:
folder: target
fingerprint_script:
- echo $CIRRUS_OS
- cat Cargo.lock
install_script:
- brew install python3
- python3 -m pip install uniffi-bindgen==0.23.0
<<: *BUILD_AND_TEST
linux_aarch64_task:
name: Test (arm64 Linux)
arm_container:
image: python:3.11
cpu: 4
memory: 4G
env:
PATH: /root/.cargo/bin:$PATH
registry_cache:
folder: /root/.cargo/registry
fingerprint_script:
- echo $CIRRUS_OS
- cat Cargo.lock
target_cache:
folder: target
fingerprint_script:
- echo $CIRRUS_OS
- cat Cargo.lock
install_script:
- python3 -m pip install uniffi-bindgen==0.23.0
<<: *BUILD_AND_TEST