-
Notifications
You must be signed in to change notification settings - Fork 179
35 lines (30 loc) · 796 Bytes
/
rust.yml
File metadata and controls
35 lines (30 loc) · 796 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, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
strategy:
matrix:
rust:
- stable
- beta
steps:
- uses: actions/checkout@v1
- name: Install ARM toolchain
run: rustup target add thumbv7em-none-eabihf
- name: Check Fmt
run: cargo fmt --all -- --check
- name: Build lib
run: cargo check --lib --verbose
- name: Build examples
continue-on-error: true
run: cargo build --examples --all-targets --verbose
- name: Run tests
run: cargo test --verbose
- name: Build docs
run: cargo doc
- name: Clippy
continue-on-error: true
run: cargo clippy --all-targets -- -D warnings -A clippy::new_ret_no_self