Skip to content

fix fmt

fix fmt #9

Workflow file for this run

name: Build BSPs
on: [push, pull_request]
jobs:
setup:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout sources
uses: actions/checkout@v2
- id: set-matrix
uses: ./.github/actions/list-BSPs
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
needs: setup
strategy:
matrix: ${{fromJson(needs.setup.outputs.matrix)}}
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Rust (thumbv6m)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
target: thumbv6m-none-eabi
components: clippy
- name: Install Rust (thumbv7em)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
target: thumbv7em-none-eabihf
components: clippy
- name: Test ${{ matrix.bsp }}
run: |
build_invocation=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp }}' -c '.boards | .[$board] | .build')
set -ex
cd boards/${{ matrix.bsp }}
$(${build_invocation})
- uses: actions-rs/clippy-check@v1
if: ${{ matrix.toolchain == 'nightly' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Clippy ${{ matrix.bsp }}
args: --all-features --manifest-path=boards/${{ matrix.bsp }}/Cargo.toml
build_hal:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Rust (thumbv6m)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: thumbv6m-none-eabi
components: clippy
- name: Build HAL
run: |
set -ex
cd hal
cargo build --features="library"