aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/clippy-check-example.yml
diff options
context:
space:
mode:
authordatdenkikniet <jcdra1@gmail.com>2025-03-22 23:55:32 +0100
committerdatdenkikniet <38322042+datdenkikniet@users.noreply.github.com>2025-03-23 09:57:48 +0000
commit11699b439126744ad918a1c6b90e73cb24da868d (patch)
tree02421695d6cab568fb6010fce4369f918a8fe406 /.github/workflows/clippy-check-example.yml
parent5de3ca0aef627f9d4d095e386c3b833d35477685 (diff)
rtic: placate clippy for esp32c3
Diffstat (limited to '.github/workflows/clippy-check-example.yml')
-rw-r--r--.github/workflows/clippy-check-example.yml20
1 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/clippy-check-example.yml b/.github/workflows/clippy-check-example.yml
index 5d44614..e1a5f62 100644
--- a/.github/workflows/clippy-check-example.yml
+++ b/.github/workflows/clippy-check-example.yml
@@ -53,4 +53,22 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Check the examples
- run: cargo xtask example-check --platform ${{ inputs.platform }} --backend ${{ inputs.backend }} ${{ inputs.example-args }} \ No newline at end of file
+ run: cargo xtask example-check --platform ${{ inputs.platform }} --backend ${{ inputs.backend }} ${{ inputs.example-args }}
+
+ clippy:
+ runs-on: ubuntu-22.04
+ name: Run clippy
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Configure Rust target ${{ inputs.rustup-target }}
+ run: rustup target add ${{ inputs.rustup-target }}
+
+ - name: Add Rust component clippy
+ run: rustup component add clippy
+
+ - name: Cache Dependencies
+ uses: Swatinem/rust-cache@v2
+
+ - run: cargo xtask --deny-warnings --platform ${{ inputs.platform }} --backend ${{ inputs.backend }} clippy \ No newline at end of file