2021-02-12 23:36:06 -04:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-02-20 14:49:40 -04:00
|
|
|
runs-on: ubuntu-20.04
|
2021-02-12 23:36:06 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
rust:
|
|
|
|
- { toolchain: nightly }
|
|
|
|
steps:
|
2021-04-08 23:57:30 -06:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-02-12 23:36:06 -04:00
|
|
|
- name: Install Apt Dependencies
|
2021-04-08 23:57:30 -06:00
|
|
|
run: sudo apt-get update && sudo apt-get install binutils-arm-none-eabi
|
|
|
|
|
2021-02-12 23:36:06 -04:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: ${{ matrix.rust.toolchain }}
|
|
|
|
default: true
|
2021-04-08 23:57:30 -06:00
|
|
|
|
2021-02-12 23:36:06 -04:00
|
|
|
- name: Install Rust Source
|
|
|
|
run: rustup component add rust-src
|
2021-04-08 23:57:30 -06:00
|
|
|
|
|
|
|
- name: Build The Examples
|
2021-02-12 23:36:06 -04:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.rust.toolchain }}
|
2021-04-08 23:57:30 -06:00
|
|
|
command: build
|
|
|
|
args: --examples
|
|
|
|
|
|
|
|
- name: Check That Docs Compile
|
2021-02-12 23:36:06 -04:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.rust.toolchain }}
|
2021-04-08 23:57:30 -06:00
|
|
|
command: test
|
|
|
|
args: --doc
|