mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
CI: Iterate over backends instead of packages
This commit is contained in:
parent
2ea08fa84d
commit
7d232aa74a
1 changed files with 14 additions and 21 deletions
35
.github/workflows/build.yml
vendored
35
.github/workflows/build.yml
vendored
|
@ -33,14 +33,11 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
package:
|
backend:
|
||||||
- rtic
|
- thumbv7
|
||||||
- rtic-arbiter
|
- thumbv6
|
||||||
- rtic-channel
|
- thumbv8-base
|
||||||
- rtic-common
|
- thumbv8-main
|
||||||
- rtic-macros
|
|
||||||
- rtic-monotonics
|
|
||||||
- rtic-time
|
|
||||||
toolchain:
|
toolchain:
|
||||||
- nightly
|
- nightly
|
||||||
steps:
|
steps:
|
||||||
|
@ -59,26 +56,22 @@ jobs:
|
||||||
rustup target add thumbv8m.main-none-eabi
|
rustup target add thumbv8m.main-none-eabi
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Fail on warnings
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' ${{ matrix.package }}/src/lib.rs
|
run: find . -type f -name lib.rs -execdir sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' {} +
|
||||||
|
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- run: cargo xtask --verbose check ${{ matrix.package }}
|
- run: cargo xtask --verbose --backend ${{ matrix.backend }} check
|
||||||
# Clippy
|
# Clippy
|
||||||
clippy:
|
clippy:
|
||||||
name: Cargo clippy rtic
|
name: clippy
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
package:
|
- thumbv7
|
||||||
- rtic
|
- thumbv6
|
||||||
- rtic-arbiter
|
- thumbv8-base
|
||||||
- rtic-channel
|
- thumbv8-main
|
||||||
- rtic-common
|
|
||||||
- rtic-macros
|
|
||||||
- rtic-monotonics
|
|
||||||
- rtic-time
|
|
||||||
toolchain:
|
toolchain:
|
||||||
- nightly
|
- nightly
|
||||||
steps:
|
steps:
|
||||||
|
@ -100,12 +93,12 @@ jobs:
|
||||||
run: rustup component add clippy
|
run: rustup component add clippy
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Fail on warnings
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)]\n#![deny(clippy::all)],' ${{ matrix.package }}/src/lib.rs
|
run: find . -type f -name lib.rs -execdir sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' {} +
|
||||||
|
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- run: cargo xtask --verbose clippy ${{ matrix.package }}
|
- run: cargo xtask --verbose --backend ${{ matrix.backend }} clippy
|
||||||
|
|
||||||
# Verify all examples, checks
|
# Verify all examples, checks
|
||||||
checkexamples:
|
checkexamples:
|
||||||
|
|
Loading…
Reference in a new issue