From 41c6db68114933202b4111348b133bf7f8130d57 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Tue, 4 May 2021 17:41:33 +1000 Subject: [PATCH] Move clippy into seperate workflow --- .github/workflows/check.yml | 5 ----- .github/workflows/clippy.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/clippy.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index bc86c13..748f82e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -12,15 +12,10 @@ jobs: target: thumbv6m-none-eabi override: true profile: minimal - components: clippy - uses: actions-rs/cargo@v1 with: command: check args: --workspace - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -Dwarnings - uses: actions-rs/cargo@v1 with: command: test diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml new file mode 100644 index 0000000..4675ef7 --- /dev/null +++ b/.github/workflows/clippy.yml @@ -0,0 +1,18 @@ +on: [push, pull_request] +name: Clippy check +jobs: + clippy_check: + 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: clippy + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -Dwarnings