Skip to content

Commit 8693510

Browse files
committed
move rustfmt
1 parent c7a2499 commit 8693510

File tree

2 files changed

+21
-28
lines changed

2 files changed

+21
-28
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,24 @@ jobs:
175175
wget https://stm32-rs.github.io/stm32-rs/stm32f411.svd.patched
176176
svdtools convert --input-format xml stm32f411.svd.patched stm32f411.yaml
177177
cargo run --release -- -i stm32f411.yaml
178+
179+
fmt:
180+
name: Rustfmt
181+
runs-on: ubuntu-latest
182+
steps:
183+
- uses: actions/checkout@v3
184+
185+
- uses: actions-rs/toolchain@v1
186+
with:
187+
profile: minimal
188+
toolchain: stable
189+
override: true
190+
components: rustfmt
191+
192+
- name: Cache Dependencies
193+
uses: Swatinem/rust-cache@v1
194+
195+
- uses: actions-rs/cargo@v1
196+
with:
197+
command: fmt
198+
args: --all -- --check

.github/workflows/rustfmt.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)