aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@tjaders.com>2023-02-24 01:25:48 +0100
committerHenrik Tjäder <henrik@tjaders.com>2023-03-01 00:35:23 +0100
commit7d232aa74aa2eba61f588a339cedc6a1287ec727 (patch)
tree54d33cef35935fd6c8c9706d4c00b7f6290ee65d
parent2ea08fa84df7cf910ea1d2e30c1052f52bc77a49 (diff)
CI: Iterate over backends instead of packages
-rw-r--r--.github/workflows/build.yml35
1 files changed, 14 insertions, 21 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3a10331..6deecb2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -33,14 +33,11 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
- package:
- - rtic
- - rtic-arbiter
- - rtic-channel
- - rtic-common
- - rtic-macros
- - rtic-monotonics
- - rtic-time
+ backend:
+ - thumbv7
+ - thumbv6
+ - thumbv8-base
+ - thumbv8-main
toolchain:
- nightly
steps:
@@ -59,26 +56,22 @@ jobs:
rustup target add thumbv8m.main-none-eabi
- 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
uses: Swatinem/rust-cache@v2
- - run: cargo xtask --verbose check ${{ matrix.package }}
+ - run: cargo xtask --verbose --backend ${{ matrix.backend }} check
# Clippy
clippy:
- name: Cargo clippy rtic
+ name: clippy
runs-on: ubuntu-22.04
strategy:
matrix:
- package:
- - rtic
- - rtic-arbiter
- - rtic-channel
- - rtic-common
- - rtic-macros
- - rtic-monotonics
- - rtic-time
+ - thumbv7
+ - thumbv6
+ - thumbv8-base
+ - thumbv8-main
toolchain:
- nightly
steps:
@@ -100,12 +93,12 @@ jobs:
run: rustup component add clippy
- 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
uses: Swatinem/rust-cache@v2
- - run: cargo xtask --verbose clippy ${{ matrix.package }}
+ - run: cargo xtask --verbose --backend ${{ matrix.backend }} clippy
# Verify all examples, checks
checkexamples: