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