Move rustfmt to seperateworkflow

This commit is contained in:
9names 2021-05-04 17:38:01 +10:00
parent 48dd8069b8
commit 95a1080a46
2 changed files with 20 additions and 5 deletions

View file

@ -12,15 +12,11 @@ jobs:
target: thumbv6m-none-eabi
override: true
profile: minimal
components: rustfmt, clippy
components: clippy
- uses: actions-rs/cargo@v1
with:
command: check
args: --workspace
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy

19
.github/workflows/rustfmt.yml vendored Normal file
View file

@ -0,0 +1,19 @@
on: [push, pull_request]
name: Code formatting check
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: thumbv6m-none-eabi
override: true
profile: minimal
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check