mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
CI: xtask handling example tests
This commit is contained in:
parent
a7c213e950
commit
fb203dc4b7
1 changed files with 7 additions and 7 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -187,7 +187,7 @@ jobs:
|
||||||
|
|
||||||
# Verify all examples, checks
|
# Verify all examples, checks
|
||||||
checkexamples:
|
checkexamples:
|
||||||
name: Cargo check --examples
|
name: check examples
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -204,21 +204,21 @@ jobs:
|
||||||
|
|
||||||
- name: Install Rust ${{ matrix.toolchain }}
|
- name: Install Rust ${{ matrix.toolchain }}
|
||||||
run: |
|
run: |
|
||||||
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 }})
|
||||||
run: rustup target add ${{ matrix.target }}
|
run: rustup target add ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Add Rust component llvm-tools-preview
|
|
||||||
run: rustup component add llvm-tools-preview
|
|
||||||
|
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Check the examples
|
- name: Check the examples
|
||||||
working-directory: ./rtic
|
if: ${{ matrix.target == 'thumbv8m.base-none-eabi' }}
|
||||||
run: cargo check --examples --target=${{ matrix.target }}
|
run: cargo xtask --verbose --target ${{ matrix.target }} --exampleexclude pool example-check
|
||||||
|
|
||||||
|
- name: Check the examples
|
||||||
|
if: ${{ matrix.target != 'thumbv8m.base-none-eabi' }}
|
||||||
|
run: cargo xtask --verbose --target ${{ matrix.target }} example-check
|
||||||
|
|
||||||
# Verify the example output with run-pass tests
|
# Verify the example output with run-pass tests
|
||||||
testexamples:
|
testexamples:
|
||||||
|
|
Loading…
Reference in a new issue