cross-compile now in CI

This commit is contained in:
Robin Müller 2021-11-08 23:52:41 +01:00
parent d9784284a8
commit 20ab6733d7
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
1 changed files with 6 additions and 1 deletions

View File

@ -12,10 +12,13 @@ jobs:
with:
profile: minimal
toolchain: stable
target: thumbv6m-none-eabi
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: check
args: --target thumbv6m-none-eabi
fmt:
name: Rustfmt
@ -42,12 +45,14 @@ jobs:
with:
profile: minimal
toolchain: stable
target: thumbv6m-none-eabi
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: clippy
args: -- -D warnings
args: --target thumbv6m-none-eabi -- -D warnings
ci:
if: ${{ success() }}