Merge pull request #431 from qwandor/embedded-hal #866
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master, staging, trying ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
continue-on-error: ${{ matrix.rust_version == 'nightly' }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
components: rustfmt | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust_version }} | |
profile: minimal | |
override: true | |
- name: Install Arm targets | |
run: > | |
rustup target add | |
thumbv6m-none-eabi | |
thumbv7em-none-eabi | |
thumbv7em-none-eabihf | |
thumbv8m.main-none-eabi | |
- name: Build Crates | |
run: mv Cargo.ci.toml Cargo.toml && cargo test | |
env: | |
RUSTFLAGS: ${{ matrix.rustflags }} | |
strategy: | |
matrix: | |
rust_version: [beta, nightly] | |
include: | |
- rust_version: stable | |
rustflags: --deny warnings | |
ci: | |
if: ${{ success() }} | |
# all new jobs must be added to this list | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: CI succeeded | |
run: exit 0 |