-
Notifications
You must be signed in to change notification settings - Fork 48
44 lines (40 loc) · 1.17 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
on:
pull_request:
name: Continuous integration
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
device:
- stm32g431
- stm32g441
- stm32g471
- stm32g473
- stm32g474
- stm32g483
- stm32g484
#- stm32g491 # Does not seem ready yet
#- stm32g4a1 # Does not seem ready yet
features:
- rt
- log-rtt,defmt
# TODO: -log-rtt # log-rtt without defmt, more combos?
- log-itm
- log-semihost
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: thumbv7em-none-eabihf
override: true
- name: Regular build
run: cargo check --features ${{ matrix.device }} --features ${{ matrix.features }}
- name: Build examples
run: cargo check --examples --features ${{ matrix.device }} --features ${{ matrix.features }}
- name: Clippy
run: cargo clippy --examples --features ${{ matrix.device }} --features ${{ matrix.features }}