-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
57 lines (47 loc) · 1.42 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
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-base:latest
task:
use_compute_credits: true
alias: Test
matrix:
- name: Test on macOS Monterey
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
- name: Test on macOS Ventura
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
- name: Test on macOS Sonoma
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-base:latest
install_rust_script:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
test_script:
- cargo test -- --test-threads 1
env:
PATH: "$PATH:$HOME/.cargo/bin"
task:
name: Lint
use_compute_credits: true
install_rust_script:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
rustfmt_script:
- cargo fmt --check
clippy_script:
- cargo clippy --all-targets --all-features -- -D warnings
env:
PATH: "$PATH:$HOME/.cargo/bin"
task:
name: Release
use_compute_credits: true
only_if: $CIRRUS_TAG != ''
depends_on:
- Lint
- Test
install_rust_script:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
release_script:
- cargo publish -p vmnet-derive
- cargo publish
env:
PATH: "$PATH:$HOME/.cargo/bin"
CARGO_REGISTRY_TOKEN: ENCRYPTED[5ea2a3f24d40ec22276e973c70d353ec7f5e817bf7921d7e07c75e5124a669a076a297c42837d06be4d4130d88c95026]