mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-01 16:04:33 +01:00
CI: Cargo clippy done via xtask
This commit is contained in:
parent
84f5bca9d3
commit
bedc9b55eb
1 changed files with 28 additions and 126 deletions
154
.github/workflows/build.yml
vendored
154
.github/workflows/build.yml
vendored
|
@ -143,140 +143,47 @@ jobs:
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- run: cargo xtask --verbose check ${{ matrix.package }}
|
- run: cargo xtask --verbose check ${{ matrix.package }}
|
||||||
|
|
||||||
# Clippy
|
# Clippy
|
||||||
clippyrtic:
|
clippy:
|
||||||
name: Cargo clippy rtic
|
name: Cargo clippy rtic
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
package:
|
||||||
|
- rtic
|
||||||
|
- rtic-arbiter
|
||||||
|
- rtic-channel
|
||||||
|
- rtic-common
|
||||||
|
- rtic-macros
|
||||||
|
- rtic-monotonics
|
||||||
|
- rtic-time
|
||||||
|
toolchain:
|
||||||
|
- nightly
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Install Rust ${{ matrix.toolchain }}
|
||||||
working-directory: ./rtic
|
run: |
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
rustup override set ${{ matrix.toolchain }}
|
||||||
|
|
||||||
|
- name: Configure Rust target (v6, v7, v8.b v8.m)
|
||||||
|
run: |
|
||||||
|
rustup target add thumbv7m-none-eabi
|
||||||
|
rustup target add thumbv6m-none-eabi
|
||||||
|
rustup target add thumbv8m.base-none-eabi
|
||||||
|
rustup target add thumbv8m.main-none-eabi
|
||||||
|
|
||||||
- name: Add Rust component clippy
|
- name: Add Rust component clippy
|
||||||
working-directory: ./rtic
|
|
||||||
run: rustup component add clippy
|
run: rustup component add clippy
|
||||||
|
|
||||||
|
- name: Fail on warnings
|
||||||
|
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' ${{ matrix.package }}/src/lib.rs
|
||||||
|
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: cargo clippy
|
- run: cargo xtask --verbose clippy ${{ matrix.package }}
|
||||||
working-directory: ./rtic
|
|
||||||
run: cargo clippy
|
|
||||||
|
|
||||||
clippyrticmacros:
|
|
||||||
name: Cargo clippy rtic-macros
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-macros
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Add Rust component clippy
|
|
||||||
working-directory: ./rtic-macros
|
|
||||||
run: rustup component add clippy
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo clippy
|
|
||||||
working-directory: ./rtic-macros
|
|
||||||
run: cargo clippy
|
|
||||||
|
|
||||||
clippyarbiter:
|
|
||||||
name: Cargo clippy rtic-arbiter
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-arbiter
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Add Rust component clippy
|
|
||||||
working-directory: ./rtic-arbiter
|
|
||||||
run: rustup component add clippy
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo clippy
|
|
||||||
working-directory: ./rtic-arbiter
|
|
||||||
run: cargo clippy
|
|
||||||
|
|
||||||
clippychannel:
|
|
||||||
name: Cargo clippy rtic-channel
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-channel
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Add Rust component clippy
|
|
||||||
working-directory: ./rtic-channel
|
|
||||||
run: rustup component add clippy
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo clippy
|
|
||||||
working-directory: ./rtic-channel
|
|
||||||
run: cargo clippy
|
|
||||||
|
|
||||||
|
|
||||||
clippymonotonics:
|
|
||||||
name: Cargo clippy rtic-monotonics
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-monotonics
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Add Rust component clippy
|
|
||||||
working-directory: ./rtic-monotonics
|
|
||||||
run: rustup component add clippy
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo clippy
|
|
||||||
working-directory: ./rtic-monotonics
|
|
||||||
run: cargo clippy
|
|
||||||
|
|
||||||
clippytime:
|
|
||||||
name: Cargo clippy rtic-time
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-time
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Add Rust component clippy
|
|
||||||
working-directory: ./rtic-time
|
|
||||||
run: rustup component add clippy
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo clippy
|
|
||||||
working-directory: ./rtic-time
|
|
||||||
run: cargo clippy
|
|
||||||
|
|
||||||
# Verify all examples, checks
|
# Verify all examples, checks
|
||||||
checkexamples:
|
checkexamples:
|
||||||
|
@ -768,12 +675,7 @@ jobs:
|
||||||
- stylemonotonics
|
- stylemonotonics
|
||||||
- styletime
|
- styletime
|
||||||
- check
|
- check
|
||||||
- clippyrtic
|
- clippy
|
||||||
- clippyrticmacros
|
|
||||||
- clippyarbiter
|
|
||||||
- clippychannel
|
|
||||||
- clippymonotonics
|
|
||||||
- clippytime
|
|
||||||
- checkexamples
|
- checkexamples
|
||||||
- testexamples
|
- testexamples
|
||||||
- testsrtic
|
- testsrtic
|
||||||
|
|
Loading…
Reference in a new issue