mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
CI: Use xtask for format checking
This commit is contained in:
parent
18c843b550
commit
3e8a36ae2a
1 changed files with 6 additions and 88 deletions
94
.github/workflows/build.yml
vendored
94
.github/workflows/build.yml
vendored
|
@ -13,9 +13,9 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Run cargo fmt --check
|
# Run cargo xtask format-check
|
||||||
stylertic:
|
formatcheck:
|
||||||
name: cargo fmt rtic
|
name: cargo fmt
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -25,85 +25,8 @@ jobs:
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
||||||
|
|
||||||
- name: cargo fmt --check
|
- name: cargo xtask format-check
|
||||||
working-directory: ./rtic
|
run: cargo xtask format-check
|
||||||
run: cargo fmt --all -- --check
|
|
||||||
|
|
||||||
stylerticmacros:
|
|
||||||
name: cargo fmt 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: cargo fmt --check
|
|
||||||
working-directory: ./rtic-macros
|
|
||||||
run: cargo fmt --all -- --check
|
|
||||||
|
|
||||||
stylearbiter:
|
|
||||||
name: cargo fmt 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: cargo fmt --check
|
|
||||||
working-directory: ./rtic-arbiter
|
|
||||||
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:
|
||||||
|
@ -673,12 +596,7 @@ jobs:
|
||||||
name: ci
|
name: ci
|
||||||
if: github.event_name == 'push' && success()
|
if: github.event_name == 'push' && success()
|
||||||
needs:
|
needs:
|
||||||
- stylertic
|
- formatcheck
|
||||||
- stylerticmacros
|
|
||||||
- stylearbiter
|
|
||||||
- stylechannel
|
|
||||||
- stylemonotonics
|
|
||||||
- styletime
|
|
||||||
- check
|
- check
|
||||||
- clippy
|
- clippy
|
||||||
- checkexamples
|
- checkexamples
|
||||||
|
|
Loading…
Reference in a new issue