-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (54 loc) · 1.75 KB
/
ci.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
on: [push, pull_request]
jobs:
clippy_check:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --no-deps -- -Dwarnings
- run: cargo clippy --no-deps --no-default-features -- -Dwarnings
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rust-docs
- run: cargo doc --no-deps
- run: cargo doc --no-deps --no-default-features
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --check
build_linux:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo install cargo-afl
- run: cargo build --release --workspace --exclude serial-fuzz-target
- run: cargo build --release --no-default-features --workspace --exclude serial-fuzz-target
- run: cargo afl build --package serial-fuzz-target
- run: cargo build --example linux_usb --no-default-features --features "alloc std"
- run: cargo build --example mac_usb
- run: cargo build --example mac_usb_hr_display
- run: cargo build --example mac_usb_hr_monitor
- run: cargo build --example mac_usb_tx
- run: cargo build --example no_std_ant --no-default-features
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --tests