-
Notifications
You must be signed in to change notification settings - Fork 20
47 lines (42 loc) · 1.06 KB
/
rust.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
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Rust (thumbv7em)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
target: thumbv7em-none-eabihf
components: clippy
- name: Checkout Sources
uses: actions/checkout@v2
- name: Build - default features
run: cargo build
- name: Build - std
run: cargo build --features "std"
- name: Build - serde
run: cargo build --features "serde"
- name: Build - examples
run: cargo build --examples
- name: Test - docs
run: cargo test --doc
- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- name: Fuzz
run: |
cargo install cargo-fuzz
cargo fuzz run init -- -max_total_time=900
cargo fuzz run calibrate -- -max_total_time=1800