From 11699b439126744ad918a1c6b90e73cb24da868d Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Sat, 22 Mar 2025 23:55:32 +0100 Subject: rtic: placate clippy for esp32c3 --- .github/workflows/build.yml | 47 ------------------------------ .github/workflows/clippy-check-example.yml | 20 ++++++++++++- 2 files changed, 19 insertions(+), 48 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a18fcd7..1c7301d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,53 +74,6 @@ jobs: platform: esp32-c3 rustup-target: riscv32imc-unknown-none-elf - # Clippy - # TODO: put in clippy-check-example once esp32-c3 clippy is fixed - clippy: - name: clippy - runs-on: ubuntu-22.04 - strategy: - matrix: - input: - - backend: thumbv7 - platform: lm3s6965 - rustup-target: thumbv7m-none-eabi - - - backend: thumbv6 - platform: lm3s6965 - rustup-target: thumbv6m-none-eabi - - - backend: thumbv8-base - platform: lm3s6965 - rustup-target: thumbv8m.base-none-eabi - - - backend: thumbv8-main - platform: lm3s6965 - rustup-target: thumbv8m.main-none-eabi - - - backend: riscv32-imc-clint - platform: hifive1 - rustup-target: riscv32imc-unknown-none-elf - - - backend: riscv32-imc-mecall - platform: hifive1 - rustup-target: riscv32imc-unknown-none-elf - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Configure Rust target ${{ matrix.input.rustup-target }} - run: rustup target add ${{ matrix.input.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 ${{ matrix.input.platform }} --backend ${{ matrix.input.backend }} clippy - buildqemu: name: Get modern QEMU, build and store runs-on: ubuntu-22.04 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 -- cgit v1.2.3