Skip to content

Commit

Permalink
fix: ci workflow and add docs build
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Jan 22, 2024
1 parent d3fd059 commit 1cf250e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ jobs:
submodules: true
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
components: rustfmt, clippy, rust-docs

- name: Rustfmt lints
run: cargo fmt --all -- --check

- name: Clippy lints
run: cargo clippy --no-deps -- -D warnings

- name: Build docs
run: RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps

build-and-test:
name: Build and test
Expand All @@ -39,18 +42,15 @@ jobs:

steps:
- uses: actions/checkout@v4

- 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

- 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

0 comments on commit 1cf250e

Please sign in to comment.