name: Weekly lints
on:
workflow_dispatch:
schedule:
- cron: '0 11 * * THU'
jobs:
lint-board:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain:
- stable
- beta
- nightly
board:
- teensy4
- imxrt1010evk
- imxrt1170evk-cm7
- imxrt1060evk
steps:
- uses: actions/checkout@v6
- run: rustup toolchain install ${{ matrix.toolchain }} --no-self-update --profile minimal --component clippy --target thumbv7em-none-eabihf
- run: cargo +${{ matrix.toolchain }} --version
- run: cargo +${{ matrix.toolchain }} clippy --workspace --features=board/${{ matrix.board }} --target=thumbv7em-none-eabihf -- -D warnings
lint-rest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain:
- stable
- beta
- nightly
chip:
- imxrt-ral/imxrt1021,imxrt1020
steps:
- uses: actions/checkout@v6
- run: rustup toolchain install ${{ matrix.toolchain }} --no-self-update --profile minimal --component clippy --target thumbv7em-none-eabihf
- run: cargo +${{ matrix.toolchain }} --version
- run: cargo +${{ matrix.toolchain }} clippy --package=imxrt-hal --package=imxrt-log --features=${{ matrix.chip }} --target=thumbv7em-none-eabihf -- -D warnings