From 9b9c5005d34877fb548ee2da754531bc8039c92b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 30 Apr 2022 15:51:46 +0200 Subject: [PATCH] CI and check.sh: run cargo doc for all crates --- .github/workflows/rust.yml | 2 +- sh/check.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5d05e480..fe294ffd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -160,7 +160,7 @@ jobs: toolchain: 1.60.0 override: true - run: sudo apt-get update && sudo apt-get install libspeechd-dev - - run: cargo doc -p eframe -p egui -p egui_extras -p egui_glium -p egui_glow -p egui-winit -p emath -p epaint --lib --no-deps --all-features + - run: cargo doc --lib --no-deps --all-features cargo-deny: runs-on: ubuntu-20.04 diff --git a/sh/check.sh b/sh/check.sh index 37df8169..766583ac 100755 --- a/sh/check.sh +++ b/sh/check.sh @@ -17,7 +17,7 @@ cargo test --workspace --all-targets --all-features cargo test --workspace --doc # slow - checks all doc-tests cargo fmt --all -- --check -cargo doc -p emath -p epaint -p egui -p eframe -p egui-winit -p egui_glium -p egui_glow --lib --no-deps --all-features +cargo doc -p eframe -p egui -p egui_demo_lib -p egui_extras -p egui_glium -p egui_glow -p egui-winit -p emath -p epaint --lib --no-deps --all-features cargo doc --document-private-items --no-deps --all-features (cd eframe && cargo check --no-default-features) @@ -47,6 +47,8 @@ cargo doc --document-private-items --no-deps --all-features # cargo install cargo-deny cargo deny check +# TODO: consider using https://github.com/taiki-e/cargo-hack or https://github.com/frewsxcv/cargo-all-features + # ------------------------------------------------------------ #