From 795c3f870b41e236d06d016c871d183dd1869e94 Mon Sep 17 00:00:00 2001 From: J Henry Waugh Date: Sun, 20 Sep 2020 12:47:31 -0500 Subject: [PATCH] New CI Job for Formatting --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37d8c233..1d005821 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,6 +77,29 @@ jobs: with: command: build args: --manifest-path=no_std/no_std_test/Cargo.toml ${{matrix.flags}} + rustfmt: + name: Check Formatting + runs-on: windows-latest + continue-on-error: true + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + - name: Run Rustfmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + - name: Run Rustfmt + uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- codegen_build: name: Codegen Build runs-on: ${{matrix.os}}