Skip to content

Commit 6e52a84

Browse files
committed
Add examples to CI
1 parent 3a79f38 commit 6e52a84

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,22 @@ jobs:
5151
runs-on: ubuntu-latest
5252
strategy:
5353
matrix:
54-
rust:
55-
- stable
56-
device-series:
57-
- stm32g4
58-
#- stm32f3
59-
#- stm32h7
54+
include:
55+
- { family: stm32g4, device: stm32g474 }
56+
- { family: stm32g4, device: stm32g484 }
57+
#- { family: stm32f3, device: stm32f334 }
58+
#- { family: stm32h7, device: stm32h743 }
6059
steps:
6160
- uses: actions/checkout@v2
6261
- uses: actions-rs/toolchain@v1
6362
with:
6463
profile: minimal
65-
toolchain: ${{ matrix.rust }}
64+
toolchain: stable
6665
target: thumbv7em-none-eabihf
6766
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 }}
7267
- name: fmt
73-
run: cd examples/${{ matrix.device-series }}; cargo fmt --check
68+
run: cd examples/${{ matrix.family }}; cargo fmt --check
69+
- name: Build ${{ matrix.family }} examples
70+
run: cd examples/${{ matrix.family }}; cargo check --bins --features ${{ matrix.device }}
71+
- name: Clippy
72+
run: cd examples/${{ matrix.family }}; cargo clippy --bins --features ${{ matrix.device }}

src/control.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use super::{external_event::EevInputs, fault::FaultInputs};
1212

1313
impl HrTimOngoingCalibration {
1414
/// Look in the hal for an corresponding extension trait for `HRTIM_COMMON`.
15-
///
15+
///
1616
/// ..unless you are the one implementing the hal
1717
///
1818
/// # Safety

0 commit comments

Comments
 (0)