name: CI
on:
push:
branches: [ main, staging, trying ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "--deny warnings"
jobs:
test:
strategy:
matrix:
rust:
- stable
- nightly
os:
- ubuntu-latest
- macOS-latest
- windows-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
target: thumbv6m-none-eabi
- name: Install C libraries for tooling
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev
- name: Build host tooling
run: |
cargo build
- name: Build embedded tooling
working-directory: panic-probe
run: |
cargo build --target thumbv6m-none-eabi
cargo build --target thumbv6m-none-eabi --features print-rtt
cargo build --target thumbv6m-none-eabi --features print-defmt