-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (44 loc) · 1.56 KB
/
ci.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: Check examples
on:
push:
pull_request:
jobs:
ci-examples:
runs-on: ubuntu-latest
strategy:
matrix:
example: [blinky, i2c_oled_display, usb_serial]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rust-src, rustfmt, clippy
- run: cargo fmt -- --check
working-directory: ./examples/${{ matrix.example }}
- run: cargo check
working-directory: ./examples/${{ matrix.example }}
- run: cargo clippy --no-deps
working-directory: ./examples/${{ matrix.example }}
ci-crates:
runs-on: ubuntu-latest
strategy:
matrix:
crate: [mips-rt, pic32-config-sector, pic32-hal]
include:
- crate: pic32-hal
features: "pic32mx2xxfxxxb, usb-device"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rust-src, clippy
- run: cargo check --features "${{ matrix.features }}"
working-directory: ./${{ matrix.crate }}
- run: cargo clippy --no-deps --features "${{ matrix.features }}"
working-directory: ./${{ matrix.crate }}