-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (56 loc) · 2.02 KB
/
rust.yml
File metadata and controls
79 lines (56 loc) · 2.02 KB
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
name: Rust
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Install protobuf compiler
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: cargo fmt
run: cargo fmt --check
- name: cargo clippy
run: cargo clippy --all-features -- -D warnings
- name: cargo check default
run: cargo check
- name: cargo check no default features
run: cargo check --no-default-features
- name: cargo check native
run: cargo check --no-default-features --features native
- name: cargo check wallet
run: cargo check --no-default-features --features wallet
- name: cargo check evm
run: cargo check --no-default-features --features evm
- name: cargo check grpc
run: cargo check --no-default-features --features grpc
- name: cargo check bft
run: cargo check --no-default-features --features bft
- name: cargo check native,wallet
run: cargo check --no-default-features --features native,wallet
- name: cargo check evm,grpc
run: cargo check --no-default-features --features evm,grpc
- name: cargo check all features
run: cargo check --all-features
- name: cargo check examples all features
run: cargo check --examples --all-features
- name: cargo test wallet
run: cargo test --no-default-features --features wallet
- name: cargo test evm
run: cargo test --no-default-features --features evm
- name: cargo test all features
run: cargo test --all-features
- name: cargo doc all features
run: cargo doc --all-features --no-deps