Skip to content

Feat/embedded hal version 1.0 traits #46

Feat/embedded hal version 1.0 traits

Feat/embedded hal version 1.0 traits #46

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
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo build
- run: cargo test
- run: cargo build -F asynch
- run: cargo test -F asynch