-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 803 Bytes
/
Copy pathrust.yml
File metadata and controls
34 lines (31 loc) · 803 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
34
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt install -y build-essential gcc-arm-none-eabi
- uses: actions/checkout@v3
- name: Build
run: cargo build --lib
- name: Run unit tests
run: cargo test --lib
- name: Run doc tests
run: cargo test --doc
- name: Clippy check
run: cargo clippy -- -D clippy::all
- name: Generate docs
run: cargo doc --no-deps
- name: Build examples
working-directory: examples
run: cargo build --release --bins
- name: Clippy check for examples
working-directory: examples
run: cargo clippy -- -D clippy::all