feat: updating from newer svd2rust (#63) #145
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: Rust | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
rust-channel: [ 'stable', 'nightly' ] | |
rust-target: [ 'x86_64-unknown-linux-gnu', 'thumbv7em-none-eabihf' ] | |
name: ${{ matrix.rust-channel }}-${{ matrix.rust-target }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust-channel }} | |
target: ${{ matrix.rust-target }} | |
- name: Cargo Check | |
run: cargo check --target ${{ matrix.rust-target }} | |
- name: Cargo Build | |
run: cargo build --verbose --target ${{ matrix.rust-target }} |