Skip to content

ci: specify pnpm version #405

ci: specify pnpm version

ci: specify pnpm version #405

Workflow file for this run

# https://doc.rust-lang.org/cargo/guide/continuous-integration.html
name: Cargo Build & Test
on: push
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Cargo Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2
- run: cargo build --verbose
- run: cargo test --verbose
build_boards:
name: Cargo Build (boards)
runs-on: ubuntu-latest
strategy:
matrix:
board:
- stm32l476rg
- stm32h743zi
- stm32f767zi
steps:
- uses: actions/checkout@v4
- run: rustup target add thumbv7em-none-eabihf
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.board }}
- run: cargo build --verbose
working-directory: boards/${{ matrix.board }}