mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
CI: Cargo fmt for channel, mono., time
This commit is contained in:
parent
2cba9c363b
commit
b2121f9ae6
1 changed files with 47 additions and 1 deletions
48
.github/workflows/build.yml
vendored
48
.github/workflows/build.yml
vendored
|
@ -15,7 +15,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
# Run cargo fmt --check, includes macros/
|
# Run cargo fmt --check, includes macros/
|
||||||
style:
|
style:
|
||||||
name: style
|
name: cargo fmt
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -29,6 +29,52 @@ jobs:
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: cargo fmt --all -- --check
|
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
|
# Compilation check
|
||||||
check:
|
check:
|
||||||
name: check
|
name: check
|
||||||
|
|
Loading…
Reference in a new issue