From 347bfaae025aca555b0dd80738cacee6b75d8c57 Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Sat, 22 Mar 2025 22:23:26 +0100 Subject: ci & xtask: support hifive clippy --- .github/workflows/build.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e780b7c..b43f136 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,7 +65,7 @@ jobs: - run: cargo xtask --deny-warnings --platform lm3s6965 --backend ${{ matrix.input.backend }} check # Clippy - # TODO: clippy hifive1, esp32-c3 + # TODO: clippy esp32-c3 clippy: name: clippy runs-on: ubuntu-22.04 @@ -73,17 +73,29 @@ jobs: 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 @@ -97,7 +109,7 @@ jobs: - name: Cache Dependencies uses: Swatinem/rust-cache@v2 - - run: cargo xtask --deny-warnings --platform lm3s6965 --backend ${{ matrix.input.backend }} clippy + - run: cargo xtask --deny-warnings --platform ${{ matrix.input.platform }} --backend ${{ matrix.input.backend }} clippy # Verify all examples, checks checkexamples: @@ -184,7 +196,7 @@ jobs: - if: ${{ steps.cache-qemu.outputs.cache-hit != 'true' }} name: Download QEMU - run: wget "${{ env.QEMU_URL }}" + run: wget "${{ env.QEMU_URL }}" - if: ${{ steps.cache-qemu.outputs.cache-hit != 'true' }} name: Extract QEMU -- cgit v1.2.3