mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 22:05:37 +01:00
rtic: placate clippy for esp32c3
This commit is contained in:
parent
5de3ca0aef
commit
11699b4391
5 changed files with 27 additions and 56 deletions
47
.github/workflows/build.yml
vendored
47
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
20
.github/workflows/clippy-check-example.yml
vendored
20
.github/workflows/clippy-check-example.yml
vendored
|
|
@ -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 }}
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue