doc: musings #42
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: Build | |
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md | |
on: [push, pull_request] | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Add Cortex-M build target toolchain | |
run: rustup target add thumbv7em-none-eabihf | |
- name: Run cargo check | |
uses: actions-rs/cargo@v1 | |
continue-on-error: true # WARNING: only for this example, remove it! | |
with: | |
command: check | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Add Cortex-M build target toolchain | |
run: rustup target add thumbv7em-none-eabihf | |
- name: Run cargo build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Add Cortex-M build target toolchain | |
run: rustup target add thumbv7em-none-eabihf | |
- name: Run cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test |