Skip to content

Commit 3a79f38

Browse files
committed
Add examples to CI
1 parent 39a7dbd commit 3a79f38

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,34 @@ jobs:
4040
target: thumbv7em-none-eabihf
4141
override: true
4242

43+
- name: fmt
44+
run: cargo fmt --check
4345
- name: Regular build
4446
run: cargo check --features ${{ matrix.device }} --features ${{ matrix.features }}
45-
- name: Build examples
46-
run: cargo check --examples --features ${{ matrix.device }} --features ${{ matrix.features }}
4747
- name: Clippy
4848
run: cargo clippy --examples --features ${{ matrix.device }} --features ${{ matrix.features }}
49+
50+
examples:
51+
runs-on: ubuntu-latest
52+
strategy:
53+
matrix:
54+
rust:
55+
- stable
56+
device-series:
57+
- stm32g4
58+
#- stm32f3
59+
#- stm32h7
60+
steps:
61+
- uses: actions/checkout@v2
62+
- uses: actions-rs/toolchain@v1
63+
with:
64+
profile: minimal
65+
toolchain: ${{ matrix.rust }}
66+
target: thumbv7em-none-eabihf
67+
override: true
68+
- name: Build stm32g4 examples
69+
run: cd examples/${{ matrix.device-series }}; cargo check --bins
70+
- name: Clippy
71+
run: cd examples/${{ matrix.device-series }}; cargo clippy --bins --features ${{ matrix.device }}
72+
- name: fmt
73+
run: cd examples/${{ matrix.device-series }}; cargo fmt --check

0 commit comments

Comments
 (0)