-
Notifications
You must be signed in to change notification settings - Fork 18
65 lines (50 loc) · 1.74 KB
/
rust_ci.yml
File metadata and controls
65 lines (50 loc) · 1.74 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
name: CI
on:
push:
paths-ignore:
- "**/README.md"
pull_request:
workflow_dispatch:
env:
rust_toolchain: nightly
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
strategy:
matrix:
target:
- default
steps:
- name: Setup | Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ env.rust_toolchain }}
components: rustfmt, clippy, rust-src
- name: Setup | Rust thumbv7em-none-eabi
run: rustup target add thumbv7em-none-eabi
- name: Setup | Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build | Fmt Check
run: cd openthread; cargo fmt -- --check
- name: Build | Clippy
run: cd openthread; cargo clippy --no-deps --features udp,srp,edge-nal,embassy-net-driver-channel,log -- -Dwarnings
- name: Build | Clippy - defmt
run: export DEFMT_LOG=trace;cd openthread; cargo clippy --no-deps --features udp,srp,edge-nal,embassy-net-driver-channel,defmt -- -Dwarnings
- name: Build | Compile
run: cd openthread; cargo build
- name: Examples-ESP-Build | Fmt Check
run: cd examples/esp; cargo fmt -- --check
- name: Examples-ESP-Build | Clippy
run: cd examples/esp; cargo clippy --no-deps -- -Dwarnings
- name: Examples-ESP-Build | Compile
run: cd examples/esp; cargo build
- name: Examples-NRF-Build | Fmt Check
run: cd examples/nrf; cargo fmt -- --check
- name: Examples-NRF-Build | Clippy
run: cd examples/nrf; cargo clippy --no-deps -- -Dwarnings
- name: Examples-NRF-Build | Compile
run: cd examples/nrf; cargo build