mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
Check usage examples in CI
This commit is contained in:
parent
63b7024cb9
commit
eac593e300
1 changed files with 29 additions and 0 deletions
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
@ -148,6 +148,35 @@ jobs:
|
||||||
if: ${{ matrix.backend != 'thumbv8-base' }}
|
if: ${{ matrix.backend != 'thumbv8-base' }}
|
||||||
run: cargo xtask --backend ${{ matrix.backend }} example-check
|
run: cargo xtask --backend ${{ matrix.backend }} example-check
|
||||||
|
|
||||||
|
# Check that the usage examples build
|
||||||
|
usageexamples:
|
||||||
|
name: Build usage examples
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
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 (v6, v7)
|
||||||
|
run: |
|
||||||
|
rustup target add thumbv7m-none-eabi
|
||||||
|
rustup target add thumbv6m-none-eabi
|
||||||
|
rustup component add rust-src
|
||||||
|
|
||||||
|
- name: Cache Dependencies
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
- name: Check the examples
|
||||||
|
run: cargo xtask usage-example-build
|
||||||
|
|
||||||
# Verify the example output with run-pass tests
|
# Verify the example output with run-pass tests
|
||||||
testexamples:
|
testexamples:
|
||||||
name: QEMU run
|
name: QEMU run
|
||||||
|
|
Loading…
Reference in a new issue