name: Build and Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
miri:
name: "Build all crates"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install embedded target
run: rustup target add thumbv7em-none-eabi
- name: Check bbq2 (no features, on host)
run: cargo build --no-default-features
- name: Check bbq2 (default features, on host)
run: cargo build
- name: Check bbq2 (std features, on host)
run: cargo build --features=std
- name: Test bbq2 (std features, on host)
run: cargo test --features=std
- name: Check bbq2 (no features, on mcu)
run: cargo build --no-default-features --target=thumbv7em-none-eabi
- name: Check bbq2 (no features, on mcu)
run: cargo build --target=thumbv7em-none-eabi