Skip to content

chore: update README to include MSRV and features #49

chore: update README to include MSRV and features

chore: update README to include MSRV and features #49

Workflow file for this run

on: [push, pull_request]
name: Continuous integration
# Stops the running workflow of previous pushes
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
lints-and-checks:
name: Lints and checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: Rustfmt lints
run: cargo fmt --all -- --check
- name: Clippy lints
run: cargo clippy --no-deps -- -D warnings
build-and-test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
- 1.65 # MSRV
- 1.75 # `async_fn_in_trait` + `impl_trait_projections` stabilised
steps:
- uses: actions/checkout@v4

Check failure on line 42 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 42
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- if: ${{ matrix.rust }} != '1.65'
run: cargo build --all-features
- if: ${{ matrix.rust }} != '1.65'
run: cargo test --all-features
# embedded-hal-async has MSRV of 1.75, this is why we exclude `asynch` feature
- if: ${{ matrix.rust }} == '1.65'
run: cargo build -F defmt-03 -F serde -F config-builder
- if: ${{ matrix.rust }} == '1.65'
run: cargo test -F defmt-03 -F serde -F config-builder