-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
41 lines (40 loc) · 1.16 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
task:
matrix:
- name: linux
container:
image: rust:latest
prebuild_script:
- apt update
- apt install libdbus-1-dev pkg-config -y
- name: macos
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
env:
PATH: $PATH:$HOME/.cargo/bin
install_script: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: windows
windows_container:
image: cirrusci/windowsservercore:visualstudio2022
env:
PATH: $USERPROFILE\.cargo\bin;$PATH
install_script:
- curl -sSf -o rustup-init.exe https://win.rustup.rs
- rustup-init.exe -y
registry_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock
target_cache:
folder: target
fingerprint_script:
- rustc --version
- cat Cargo.lock
test_script: cargo t
build_script: cargo build
security_script:
- cargo install cargo-audit
- cargo audit
format_script: cargo fmt --all -- --check
lint_script:
- rustup component add clippy
- cargo clippy -- -D warnings
before_cache_script: rm -rf $CARGO_HOME/registry/index