diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2023-01-28 11:42:24 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:33:35 +0100 |
| commit | 07c11b071d048ef9f31e76584484719587e3ed71 (patch) | |
| tree | af7fd38b04317c6fc9bcd2a28f6727b31fa78360 /.github | |
| parent | ff12a02d020965956ae8f9bda75ef243b3d1dd3a (diff) | |
CI: Cargo fmt for channel, mono., time
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c51d89..a709fb9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ env: jobs: # Run cargo fmt --check, includes macros/ style: - name: style + name: cargo fmt runs-on: ubuntu-22.04 steps: - name: Checkout @@ -29,6 +29,52 @@ jobs: working-directory: ./rtic run: cargo fmt --all -- --check + stylechannel: + name: cargo fmt 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: cargo fmt --check + working-directory: ./rtic-channel + run: cargo fmt --all -- --check + + stylemonotonics: + name: cargo fmt 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: cargo fmt --check + working-directory: ./rtic-monotonics + run: cargo fmt --all -- --check + + styletime: + name: cargo fmt 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: cargo fmt --check + working-directory: ./rtic-time + run: cargo fmt --all -- --check + + # Compilation check check: name: check |
