mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
CI: Use backend instead of target
This commit is contained in:
parent
3087304298
commit
0fac174936
1 changed files with 23 additions and 17 deletions
40
.github/workflows/build.yml
vendored
40
.github/workflows/build.yml
vendored
|
@ -191,11 +191,11 @@ jobs:
|
|||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
target:
|
||||
- thumbv7m-none-eabi
|
||||
- thumbv6m-none-eabi
|
||||
- thumbv8m.base-none-eabi
|
||||
- thumbv8m.main-none-eabi
|
||||
backend:
|
||||
- thumbv7
|
||||
- thumbv6
|
||||
- thumbv8-base
|
||||
- thumbv8-main
|
||||
toolchain:
|
||||
- nightly
|
||||
steps:
|
||||
|
@ -206,19 +206,23 @@ jobs:
|
|||
run: |
|
||||
rustup override set ${{ matrix.toolchain }}
|
||||
|
||||
- name: Configure Rust target (${{ matrix.target }})
|
||||
run: rustup target add ${{ matrix.target }}
|
||||
- name: Configure Rust target (v6, v7, v8.b v8.m)
|
||||
run: |
|
||||
rustup target add thumbv7m-none-eabi
|
||||
rustup target add thumbv6m-none-eabi
|
||||
rustup target add thumbv8m.base-none-eabi
|
||||
rustup target add thumbv8m.main-none-eabi
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Check the examples
|
||||
if: ${{ matrix.target == 'thumbv8m.base-none-eabi' }}
|
||||
run: cargo xtask --verbose --target ${{ matrix.target }} --exampleexclude pool example-check
|
||||
if: ${{ matrix.backend == 'thumbv8m-base' }}
|
||||
run: cargo xtask --verbose --backend ${{ matrix.backend }} --exampleexclude pool example-check
|
||||
|
||||
- name: Check the examples
|
||||
if: ${{ matrix.target != 'thumbv8m.base-none-eabi' }}
|
||||
run: cargo xtask --verbose --target ${{ matrix.target }} example-check
|
||||
if: ${{ matrix.backend != 'thumbv8m-base' }}
|
||||
run: cargo xtask --verbose --backend ${{ matrix.backend }} example-check
|
||||
|
||||
# Verify the example output with run-pass tests
|
||||
testexamples:
|
||||
|
@ -226,9 +230,9 @@ jobs:
|
|||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
target:
|
||||
- thumbv7m-none-eabi
|
||||
- thumbv6m-none-eabi
|
||||
backend:
|
||||
- thumbv7
|
||||
- thumbv6
|
||||
toolchain:
|
||||
- nightly
|
||||
steps:
|
||||
|
@ -240,8 +244,10 @@ jobs:
|
|||
rustup set profile minimal
|
||||
rustup override set ${{ matrix.toolchain }}
|
||||
|
||||
- name: Configure Rust target (${{ matrix.target }})
|
||||
run: rustup target add ${{ matrix.target }}
|
||||
- name: Configure Rust target (v6, v7)
|
||||
run: |
|
||||
rustup target add thumbv7m-none-eabi
|
||||
rustup target add thumbv6m-none-eabi
|
||||
|
||||
- name: Add Rust component llvm-tools-preview
|
||||
run: rustup component add llvm-tools-preview
|
||||
|
@ -263,7 +269,7 @@ jobs:
|
|||
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
|
||||
|
||||
- name: Run-pass tests
|
||||
run: cargo xtask --verbose --target ${{ matrix.target }} qemu
|
||||
run: cargo xtask --verbose --backend ${{ matrix.backend }} qemu
|
||||
|
||||
# Run test suite
|
||||
testsrtic:
|
||||
|
|
Loading…
Reference in a new issue