-
Notifications
You must be signed in to change notification settings - Fork 15
33 lines (29 loc) · 770 Bytes
/
Copy pathrust.yml
File metadata and controls
33 lines (29 loc) · 770 Bytes
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
name: Rust Checks
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --examples --verbose
- name: Build esp-node example
working-directory: examples/esp-node
run: cargo build
- name: Clippy
run: cargo clippy -- -D warnings
- name: Clippy Examples
run: cargo clippy --examples -- -D warnings
- name: rustfmt
run: cargo fmt --check
- name: Run tests
run: cargo test --verbose
- name: Build stm32g0-lilos-node example
working-directory: examples/stm32g0-lilos-node
run: cargo build