Skip to content

Commit

Permalink
Use nightly to test documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ia0 committed May 13, 2024
1 parent f995977 commit 8b64a7d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ has_target() {
ensure_target() {
has_target "$1" || rustup target add "$1"
}

ensure_target thumbv7em-none-eabi

has_toolchain() {
rustup toolchain list | grep -q "$1"
}
ensure_toolchain() {
has_toolchain "$1" || rustup toolchain install "$1"
}

ensure_toolchain nightly-x86_64-unknown-linux-gnu

cargo_check() {
cargo check "$@"
cargo clippy "$@" -- --deny=warnings
Expand All @@ -18,13 +30,12 @@ cargo_test() {

cargo_test --features=alloc,experimental-derive,use-std,use-crc

ensure_target thumbv7em-none-eabi
cargo_check --target=thumbv7em-none-eabi --no-default-features
cargo_check --target=thumbv7em-none-eabi --features=alloc,experimental-derive

cargo fmt -- --check

env RUSTDOCFLAGS='--cfg=docsrs --deny=warnings' cargo doc --no-deps --all-features
env RUSTDOCFLAGS='--cfg=docsrs --deny=warnings' cargo +nightly doc --no-deps --all-features

cd postcard-derive

Expand Down

0 comments on commit 8b64a7d

Please sign in to comment.