mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-30 15:34:33 +01:00
CI: Use xtask for all checks
This commit is contained in:
parent
0439867baf
commit
79b53ce82d
1 changed files with 12 additions and 196 deletions
208
.github/workflows/build.yml
vendored
208
.github/workflows/build.yml
vendored
|
@ -106,11 +106,19 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
# Compilation check
|
# Compilation check
|
||||||
checkrtic:
|
check:
|
||||||
name: check rtic
|
name: check rtic
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
package:
|
||||||
|
- rtic
|
||||||
|
- rtic-arbiter
|
||||||
|
- rtic-channel
|
||||||
|
- rtic-common
|
||||||
|
- rtic-macros
|
||||||
|
- rtic-monotonics
|
||||||
|
- rtic-time
|
||||||
target:
|
target:
|
||||||
- thumbv7m-none-eabi
|
- thumbv7m-none-eabi
|
||||||
- thumbv6m-none-eabi
|
- thumbv6m-none-eabi
|
||||||
|
@ -122,208 +130,21 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Rust ${{ matrix.toolchain }}
|
- name: Install Rust ${{ matrix.toolchain }}
|
||||||
working-directory: ./rtic
|
|
||||||
run: |
|
run: |
|
||||||
rustup set profile minimal
|
rustup set profile minimal
|
||||||
rustup override set ${{ matrix.toolchain }}
|
rustup override set ${{ matrix.toolchain }}
|
||||||
|
|
||||||
- name: Configure Rust target (${{ matrix.target }})
|
- name: Configure Rust target (${{ matrix.target }})
|
||||||
working-directory: ./rtic
|
|
||||||
run: rustup target add ${{ matrix.target }}
|
run: rustup target add ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Fail on warnings
|
||||||
working-directory: ./rtic
|
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' ${{ matrix.package }}/src/lib.rs
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: cargo check
|
- name: cargo check
|
||||||
working-directory: ./rtic
|
run: cargo xtask --verbose --target=${{ matrix.target }} check ${{ matrix.package }}
|
||||||
run: cargo check --target=${{ matrix.target }}
|
|
||||||
|
|
||||||
# Compilation check
|
|
||||||
checkrticmacros:
|
|
||||||
name: check rtic-macros
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
target:
|
|
||||||
- x86_64-unknown-linux-gnu
|
|
||||||
toolchain:
|
|
||||||
- nightly
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install Rust ${{ matrix.toolchain }}
|
|
||||||
working-directory: ./rtic-macros
|
|
||||||
run: |
|
|
||||||
rustup set profile minimal
|
|
||||||
rustup override set ${{ matrix.toolchain }}
|
|
||||||
|
|
||||||
- name: Configure Rust target (${{ matrix.target }})
|
|
||||||
working-directory: ./rtic-macros
|
|
||||||
run: rustup target add ${{ matrix.target }}
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-macros
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo check
|
|
||||||
working-directory: ./rtic-macros
|
|
||||||
run: cargo check --target=${{ matrix.target }}
|
|
||||||
|
|
||||||
# Compilation check
|
|
||||||
checkarbiter:
|
|
||||||
name: check rtic-arbiter
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
target:
|
|
||||||
- thumbv7m-none-eabi
|
|
||||||
- thumbv6m-none-eabi
|
|
||||||
- x86_64-unknown-linux-gnu
|
|
||||||
toolchain:
|
|
||||||
- nightly
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install Rust ${{ matrix.toolchain }}
|
|
||||||
working-directory: ./rtic-arbiter
|
|
||||||
run: |
|
|
||||||
rustup set profile minimal
|
|
||||||
rustup override set ${{ matrix.toolchain }}
|
|
||||||
|
|
||||||
- name: Configure Rust target (${{ matrix.target }})
|
|
||||||
working-directory: ./rtic-arbiter
|
|
||||||
run: rustup target add ${{ matrix.target }}
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-arbiter
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo check
|
|
||||||
working-directory: ./rtic-arbiter
|
|
||||||
run: cargo check --target=${{ matrix.target }}
|
|
||||||
|
|
||||||
# Compilation check
|
|
||||||
checkchannel:
|
|
||||||
name: check rtic-channel
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
target:
|
|
||||||
- thumbv7m-none-eabi
|
|
||||||
- thumbv6m-none-eabi
|
|
||||||
- x86_64-unknown-linux-gnu
|
|
||||||
toolchain:
|
|
||||||
- nightly
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install Rust ${{ matrix.toolchain }}
|
|
||||||
working-directory: ./rtic-channel
|
|
||||||
run: |
|
|
||||||
rustup set profile minimal
|
|
||||||
rustup override set ${{ matrix.toolchain }}
|
|
||||||
|
|
||||||
- name: Configure Rust target (${{ matrix.target }})
|
|
||||||
working-directory: ./rtic-channel
|
|
||||||
run: rustup target add ${{ matrix.target }}
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-channel
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo check
|
|
||||||
working-directory: ./rtic-channel
|
|
||||||
run: cargo check --target=${{ matrix.target }}
|
|
||||||
|
|
||||||
# Compilation check
|
|
||||||
checkmonotonics:
|
|
||||||
name: check rtic-monotonics
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
target:
|
|
||||||
- thumbv7m-none-eabi
|
|
||||||
- thumbv6m-none-eabi
|
|
||||||
- x86_64-unknown-linux-gnu
|
|
||||||
toolchain:
|
|
||||||
- nightly
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install Rust ${{ matrix.toolchain }}
|
|
||||||
working-directory: ./rtic-monotonics
|
|
||||||
run: |
|
|
||||||
rustup set profile minimal
|
|
||||||
rustup override set ${{ matrix.toolchain }}
|
|
||||||
|
|
||||||
- name: Configure Rust target (${{ matrix.target }})
|
|
||||||
working-directory: ./rtic-monotonics
|
|
||||||
run: rustup target add ${{ matrix.target }}
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-monotonics
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo check
|
|
||||||
working-directory: ./rtic-monotonics
|
|
||||||
run: cargo check --target=${{ matrix.target }}
|
|
||||||
|
|
||||||
# Compilation check
|
|
||||||
checktime:
|
|
||||||
name: check rtic-time
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
target:
|
|
||||||
- thumbv7m-none-eabi
|
|
||||||
- thumbv6m-none-eabi
|
|
||||||
- x86_64-unknown-linux-gnu
|
|
||||||
toolchain:
|
|
||||||
- nightly
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install Rust ${{ matrix.toolchain }}
|
|
||||||
working-directory: ./rtic-time
|
|
||||||
run: |
|
|
||||||
rustup set profile minimal
|
|
||||||
rustup override set ${{ matrix.toolchain }}
|
|
||||||
|
|
||||||
- name: Configure Rust target (${{ matrix.target }})
|
|
||||||
working-directory: ./rtic-time
|
|
||||||
run: rustup target add ${{ matrix.target }}
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic-time
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: cargo check
|
|
||||||
working-directory: ./rtic-time
|
|
||||||
run: cargo check --target=${{ matrix.target }}
|
|
||||||
|
|
||||||
# Clippy
|
# Clippy
|
||||||
clippyrtic:
|
clippyrtic:
|
||||||
|
@ -948,12 +769,7 @@ jobs:
|
||||||
- stylechannel
|
- stylechannel
|
||||||
- stylemonotonics
|
- stylemonotonics
|
||||||
- styletime
|
- styletime
|
||||||
- checkrtic
|
- check
|
||||||
- checkrticmacros
|
|
||||||
- checkarbiter
|
|
||||||
- checkchannel
|
|
||||||
- checkmonotonics
|
|
||||||
- checktime
|
|
||||||
- clippyrtic
|
- clippyrtic
|
||||||
- clippyrticmacros
|
- clippyrticmacros
|
||||||
- clippyarbiter
|
- clippyarbiter
|
||||||
|
|
Loading…
Reference in a new issue