-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (56 loc) · 1.89 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
48
49
50
51
52
53
54
55
56
57
58
59
60
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-check-all:
runs-on: ubuntu-latest
strategy:
matrix:
crate: [pic32-hal]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rust-src, clippy
- run: ./check_all
working-directory: ./${{ matrix.crate }}
ci-crates:
runs-on: ubuntu-latest
strategy:
matrix:
crate: [mips-rt, pic32-config-sector]
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 }}