mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
CI: Clippy for time, monotonics, channel
This commit is contained in:
parent
2f8c7bee18
commit
1c709c2866
1 changed files with 69 additions and 0 deletions
69
.github/workflows/build.yml
vendored
69
.github/workflows/build.yml
vendored
|
@ -89,6 +89,72 @@ jobs:
|
|||
working-directory: ./rtic
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
# Verify all examples, checks
|
||||
checkexamples:
|
||||
name: checkexamples
|
||||
|
@ -523,6 +589,9 @@ jobs:
|
|||
- style
|
||||
- check
|
||||
- clippy
|
||||
- clippytime
|
||||
- clippymonotonics
|
||||
- clippychannel
|
||||
- checkexamples
|
||||
- testexamples
|
||||
- checkmacros
|
||||
|
|
Loading…
Reference in a new issue