mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-30 15:34:33 +01:00
CI: Update to match separate rtic-macros
This commit is contained in:
parent
c6c6a9e6c8
commit
0f7e0e9736
1 changed files with 103 additions and 62 deletions
165
.github/workflows/build.yml
vendored
165
.github/workflows/build.yml
vendored
|
@ -13,7 +13,7 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Run cargo fmt --check, includes macros/
|
# Run cargo fmt --check
|
||||||
stylertic:
|
stylertic:
|
||||||
name: cargo fmt rtic
|
name: cargo fmt rtic
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
@ -23,12 +23,27 @@ jobs:
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Fail on warnings
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs
|
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
||||||
|
|
||||||
- name: cargo fmt --check
|
- name: cargo fmt --check
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: cargo fmt --all -- --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:
|
stylearbiter:
|
||||||
name: cargo fmt rtic-arbiter
|
name: cargo fmt rtic-arbiter
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
@ -118,7 +133,7 @@ jobs:
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Fail on warnings
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/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
|
||||||
|
@ -127,6 +142,41 @@ jobs:
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: cargo check --target=${{ matrix.target }}
|
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
|
# Compilation check
|
||||||
checkarbiter:
|
checkarbiter:
|
||||||
name: check rtic-arbiter
|
name: check rtic-arbiter
|
||||||
|
@ -285,7 +335,7 @@ jobs:
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Fail on warnings
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs
|
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
||||||
|
|
||||||
- name: Add Rust component clippy
|
- name: Add Rust component clippy
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
|
@ -298,6 +348,28 @@ jobs:
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: cargo clippy
|
run: cargo clippy
|
||||||
|
|
||||||
|
clippyrticmacros:
|
||||||
|
name: Cargo clippy 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: Add Rust component clippy
|
||||||
|
working-directory: ./rtic-macros
|
||||||
|
run: rustup component add clippy
|
||||||
|
|
||||||
|
- name: Cache Dependencies
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
- name: cargo clippy
|
||||||
|
working-directory: ./rtic-macros
|
||||||
|
run: cargo clippy
|
||||||
|
|
||||||
clippyarbiter:
|
clippyarbiter:
|
||||||
name: Cargo clippy rtic-arbiter
|
name: Cargo clippy rtic-arbiter
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
@ -424,7 +496,7 @@ jobs:
|
||||||
|
|
||||||
# Verify the example output with run-pass tests
|
# Verify the example output with run-pass tests
|
||||||
testexamples:
|
testexamples:
|
||||||
name: Cargo xtask, test examples in QEMU
|
name: test examples in QEMU
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -462,64 +534,12 @@ jobs:
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Fail on warnings
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs
|
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
||||||
|
|
||||||
- name: Run-pass tests
|
- name: Run-pass tests
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: cargo xtask --target ${{ matrix.target }}
|
run: cargo xtask --target ${{ matrix.target }}
|
||||||
|
|
||||||
# Check the correctness of macros/ crate
|
|
||||||
checkmacros:
|
|
||||||
name: Cargo 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 }}
|
|
||||||
run: |
|
|
||||||
rustup set profile minimal
|
|
||||||
rustup override set ${{ matrix.toolchain }}
|
|
||||||
|
|
||||||
- name: Configure Rust target (${{ matrix.target }})
|
|
||||||
run: rustup target add ${{ matrix.target }}
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs
|
|
||||||
|
|
||||||
- name: cargo check
|
|
||||||
working-directory: ./rtic
|
|
||||||
run: cargo check --manifest-path macros/Cargo.toml --target=${{ matrix.target }}
|
|
||||||
|
|
||||||
# Run the macros test-suite
|
|
||||||
testmacros:
|
|
||||||
name: Cargo test rtic-macros
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: Fail on warnings
|
|
||||||
working-directory: ./rtic
|
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs
|
|
||||||
|
|
||||||
- name: cargo check
|
|
||||||
working-directory: ./rtic
|
|
||||||
run: cargo test --manifest-path macros/Cargo.toml
|
|
||||||
|
|
||||||
# Run test suite
|
# Run test suite
|
||||||
testsrtic:
|
testsrtic:
|
||||||
name: tests rtic
|
name: tests rtic
|
||||||
|
@ -533,12 +553,31 @@ jobs:
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Fail on warnings
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs
|
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
||||||
|
|
||||||
- name: Run cargo test
|
- name: Run cargo test
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: cargo test --test tests
|
run: cargo test --test tests
|
||||||
|
|
||||||
|
# Run the macros test-suite
|
||||||
|
testsrticmacros:
|
||||||
|
name: tests rtic-macros
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Cache Dependencies
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
- name: Fail on warnings
|
||||||
|
working-directory: ./rtic-macros
|
||||||
|
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
||||||
|
|
||||||
|
- name: cargo check
|
||||||
|
working-directory: ./rtic-macros
|
||||||
|
run: cargo test
|
||||||
|
|
||||||
# Run test suite
|
# Run test suite
|
||||||
testsarbiter:
|
testsarbiter:
|
||||||
name: tests rtic-arbiter
|
name: tests rtic-arbiter
|
||||||
|
@ -650,7 +689,7 @@ jobs:
|
||||||
|
|
||||||
- name: Fail on warnings
|
- name: Fail on warnings
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs macros/src/lib.rs
|
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
||||||
|
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
working-directory: ./rtic
|
working-directory: ./rtic
|
||||||
|
@ -905,25 +944,27 @@ jobs:
|
||||||
if: github.event_name == 'push' && success()
|
if: github.event_name == 'push' && success()
|
||||||
needs:
|
needs:
|
||||||
- stylertic
|
- stylertic
|
||||||
|
- stylerticmacros
|
||||||
- stylearbiter
|
- stylearbiter
|
||||||
- stylechannel
|
- stylechannel
|
||||||
- stylemonotonics
|
- stylemonotonics
|
||||||
- styletime
|
- styletime
|
||||||
- checkrtic
|
- checkrtic
|
||||||
|
- checkrticmacros
|
||||||
- checkarbiter
|
- checkarbiter
|
||||||
- checkchannel
|
- checkchannel
|
||||||
- checkmonotonics
|
- checkmonotonics
|
||||||
- checktime
|
- checktime
|
||||||
- clippyrtic
|
- clippyrtic
|
||||||
|
- clippyrticmacros
|
||||||
- clippyarbiter
|
- clippyarbiter
|
||||||
- clippychannel
|
- clippychannel
|
||||||
- clippymonotonics
|
- clippymonotonics
|
||||||
- clippytime
|
- clippytime
|
||||||
- checkexamples
|
- checkexamples
|
||||||
- testexamples
|
- testexamples
|
||||||
- checkmacros
|
|
||||||
- testmacros
|
|
||||||
- testsrtic
|
- testsrtic
|
||||||
|
- testrticmacros
|
||||||
- testsarbiter
|
- testsarbiter
|
||||||
- testschannel
|
- testschannel
|
||||||
- testsmonotonics
|
- testsmonotonics
|
||||||
|
|
Loading…
Reference in a new issue