| 1 | name: Toolchain drift |
| 2 | |
| 3 | on: |
| 4 | schedule: |
| 5 | - cron: '23 7 * * 1' |
| 6 | workflow_dispatch: |
| 7 | |
| 8 | permissions: |
| 9 | contents: read |
| 10 | |
| 11 | concurrency: |
| 12 | group: toolchain-drift |
| 13 | cancel-in-progress: true |
| 14 | |
| 15 | env: |
| 16 | CARGO_TERM_COLOR: always |
| 17 | CARGO_INCREMENTAL: 0 |
| 18 | RUSTFLAGS: -Dwarnings |
| 19 | |
| 20 | jobs: |
| 21 | stable: |
| 22 | name: Floating stable (clippy) |
| 23 | runs-on: ubuntu-24.04 |
| 24 | timeout-minutes: 120 |
| 25 | steps: |
| 26 | - uses: actions/checkout@v7 |
| 27 | - uses: dtolnay/rust-toolchain@master |
| 28 | with: |
| 29 | toolchain: stable |
| 30 | components: clippy |
| 31 | - name: Install Linux system dependencies |
| 32 | run: bash scripts/ci/ci-apt-install.sh libdbus-1-dev pkg-config |
| 33 | - name: Ubuntu build headroom |
| 34 | shell: bash |
| 35 | run: bash scripts/ci/prepare-ubuntu-build-headroom.sh |
| 36 | - name: Toolchain versions |
| 37 | run: rustc +stable --version && cargo +stable --version |
| 38 | - name: cargo +stable clippy |
| 39 | run: | |
| 40 | cargo +stable clippy --workspace --all-targets --all-features --locked -- \ |
| 41 | -D warnings \ |
| 42 | -A clippy::uninlined_format_args \ |
| 43 | -A clippy::too_many_arguments \ |
| 44 | -A clippy::unnecessary_map_or |
| 45 |