diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2023-01-27 12:55:26 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:33:33 +0100 |
| commit | f62d0d17b2a1fb05635fc7468a80f9151b514d6f (patch) | |
| tree | e44dc7c7dc0f330cee64232c82aa95006c20f1da | |
| parent | 9d3c3a89aa22ba4287e1f989222a8a31b83f97fe (diff) | |
CI: Clippy for time, monotonics, channel
| -rw-r--r-- | .github/workflows/build.yml | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1493c3f..6c51d89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 |
