Skip to content

[Fixes #62] Amend CHANGELOG.md #103

[Fixes #62] Amend CHANGELOG.md

[Fixes #62] Amend CHANGELOG.md #103

Workflow file for this run

name: HAL
on: [push, pull_request]
env:
RUSTDOCFLAGS: -D warnings
RUSTFLAGS: -D warnings
MSRV: 1.63.0
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- id: pacs
run: echo "::set-output name=pac_matrix::$(ls ./pac --indicator-style=none | grep atsam | cut -c 3- | jq -ncR '[inputs]')"
- id: boards
run: echo "::set-output name=board_matrix::$(ls ./boards --indicator-style=none | jq -ncR '[inputs]')"
- id: features
run: echo "::set-output name=feature_matrix::[\"reconfigurable-system-pins\",\"usart-spi-host-without-select\"]"
outputs:
pac_matrix: ${{ steps.pacs.outputs.pac_matrix }}
board_matrix: ${{ steps.boards.outputs.board_matrix }}
feature_matrix: ${{ steps.features.outputs.feature_matrix }}
build:
needs: setup
runs-on: ubuntu-latest
strategy:
matrix:
pac: ${{ fromJson(needs.setup.outputs.pac_matrix) }}
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Specify toolchain
run: rustup override set $MSRV
- name: Install Rust (thumbv7em)
run: rustup target add thumbv7em-none-eabihf
- name: Build HAL for ${{ matrix.pac }}
run: cargo check --package atsamx7x-hal --features ${{ matrix.pac }},unproven
build-features:
needs: setup
runs-on: ubuntu-latest
strategy:
matrix:
features: ${{ fromJson(needs.setup.outputs.feature_matrix) }}
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Specify toolchain
run: rustup override set $MSRV
- name: Install Rust (thumbv7em)
run: rustup target add thumbv7em-none-eabihf
- name: Build HAL for ${{ matrix.features }}
run: cargo check --package atsamx7x-hal --features ${{ matrix.features }},samv71q21b,unproven
board-examples:
needs: setup
runs-on: ubuntu-latest
strategy:
matrix:
board: ${{ fromJson(needs.setup.outputs.board_matrix) }}
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Specify toolchain
run: rustup override set $MSRV
- name: Install Rust (thumbv7em)
run: rustup target add thumbv7em-none-eabihf
- name: Build boards/${{ matrix.board }}/examples/*
run: |
cd boards/${{ matrix.board }}
cargo check --examples
clippy-hal:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Specify toolchain
run: rustup override set $MSRV
- name: Install Rust (thumbv7em)
run: rustup target add thumbv7em-none-eabihf
- name: Install Clippy
run: rustup component add clippy
- name: Lint HAL
run: cargo clippy --package atsamx7x-hal --no-deps --features samv71q21b,unproven,reconfigurable-system-pins -- --deny warnings
clippy-examples:
needs: [setup, build, board-examples]
runs-on: ubuntu-latest
strategy:
matrix:
board: ${{ fromJson(needs.setup.outputs.board_matrix) }}
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Specify toolchain
run: rustup override set $MSRV
- name: Install Rust (thumbv7em)
run: rustup target add thumbv7em-none-eabihf
- name: Install Clippy
run: rustup component add clippy
- name: Lint boards/${{ matrix.board }}/examples/*
run: |
cd boards/${{ matrix.board }}
cargo clippy --examples --no-deps -- --deny warnings
docs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Specify toolchain
run: rustup override set $MSRV
- name: Install Rust (thumbv7em)
run: rustup target add thumbv7em-none-eabihf
- name: Build HAL documentation
run: cargo doc --package atsamx7x-hal --no-deps --features samv71q21b,unproven,reconfigurable-system-pins
- name: Build HAL doc tests
run: cargo test --package atsamx7x-hal --doc --features samv71q21b,unproven --target x86_64-unknown-linux-gnu