-
-
Notifications
You must be signed in to change notification settings - Fork 275
/
.cirrus.yml
50 lines (47 loc) · 1.24 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
env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
build_and_test: &BUILD_AND_TEST
# only run tasks on pull request or github merge queue branches
only_if: $CIRRUS_BRANCH =~ 'gh-readonly-queue/.*' || $CIRRUS_PR != ""
setup_script:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -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-14-0
env:
PATH: $HOME/.cargo/bin:$PATH
target_cache:
folder: target
fingerprint_script:
- echo $CIRRUS_OS
- cat Cargo.lock
install_script:
- pkg install -y bash git python
- python3 -m ensurepip
<<: *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
target_cache:
folder: target
fingerprint_script:
- echo $CIRRUS_OS
- cat Cargo.lock
install_script:
- python3 -m pip install uniffi-bindgen==0.28.0
<<: *BUILD_AND_TEST