Merge pull request #190 from rust-embedded-community/update-develop #606
This file contains hidden or 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: [push, pull_request] | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Check formatting | |
run: cargo fmt -- --check | |
build-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Always run MSRV too! | |
rust: ["stable", "1.76"] | |
features: ['log', 'defmt-log', '""'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Build | |
run: cargo build --no-default-features --features ${{matrix.features}} --verbose | |
env: | |
DEFMT_LOG: debug | |
- name: Run Tests | |
run: cargo test --no-default-features --features ${{matrix.features}} --verbose |