name: Rust
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- 1.31.0
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Install ARM toolchain
run: rustup target add thumbv7em-none-eabihf
- name: Build no_std
run: cargo build --target thumbv7em-none-eabihf