From 95a1080a4615be5e33ad544d579c54e2addd1269 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Tue, 4 May 2021 17:38:01 +1000 Subject: [PATCH] Move rustfmt to seperateworkflow --- .github/workflows/check.yml | 6 +----- .github/workflows/rustfmt.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/rustfmt.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3441ac5..bc86c13 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml new file mode 100644 index 0000000..528bb71 --- /dev/null +++ b/.github/workflows/rustfmt.yml @@ -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