2021-02-13 14:36:06 +11:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-09-28 02:40:05 +10:00
|
|
|
runs-on: ubuntu-latest
|
2021-02-13 14:36:06 +11:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
rust:
|
|
|
|
- { toolchain: nightly }
|
|
|
|
steps:
|
2021-04-09 15:57:30 +10:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-02-13 14:36:06 +11:00
|
|
|
- name: Install Apt Dependencies
|
2021-04-09 15:57:30 +10:00
|
|
|
run: sudo apt-get update && sudo apt-get install binutils-arm-none-eabi
|
|
|
|
|
2021-02-13 14:36:06 +11:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: ${{ matrix.rust.toolchain }}
|
|
|
|
default: true
|
2021-04-09 15:57:30 +10:00
|
|
|
|
2021-02-13 14:36:06 +11:00
|
|
|
- name: Install Rust Source
|
|
|
|
run: rustup component add rust-src
|
2021-04-09 15:57:30 +10:00
|
|
|
|
|
|
|
- name: Build The Examples
|
2021-02-13 14:36:06 +11:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.rust.toolchain }}
|
2021-04-09 15:57:30 +10:00
|
|
|
command: build
|
|
|
|
args: --examples
|