-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (65 loc) · 2.11 KB
/
rust.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
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: hecrj/setup-rust-action@v1
- name: Run clippy (no features)
run: |
cargo clippy --no-default-features
- name: Run clippy (all features)
run: |
cargo clippy --features std,serde,integer128
- name: Run clippy (std,serde)
run: |
cargo clippy --features std,serde
- name: Run clippy (serde)
run: |
cargo clippy --no-default-features --features serde
- name: Run clippy (std)
run: |
cargo clippy --no-default-features --features std
- name: Run clippy (integer128)
run: |
cargo clippy --no-default-features --features integer128
- name: Run unit tests
run: |
cargo test --all-targets --features std,serde
- name: Run unit tests (integer128)
run: |
cargo test --all-targets --features std,serde,integer128
build-msrv:
name: Test on MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: 1.65
- name: Run unit tests
run: cargo test --all-targets --features std,serde,integer128
build-nostd:
name: Build on no_std target (thumbv7em-none-eabi)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: thumbv7em-none-eabi
- run: cargo build --target thumbv7em-none-eabi --lib --release --no-default-features
build-serde:
name: Build on no_std target (thumbv7em-none-eabi)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: thumbv7em-none-eabi
- run: cargo build --target thumbv7em-none-eabi --lib --release --no-default-features --features serde,integer128