diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 441f5519d..408fd9351 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,13 +25,22 @@ jobs: rustc --version cargo --version - - name: Lint - run: | - cargo fmt -- --check - cargo clippy --all-features --all-targets + - uses: taiki-e/install-action@cargo-hack + + - name: feature compatibility + run: cargo hack check --feature-powerset --no-dev-deps + + - name: rustfmt + run: cargo fmt -- --check + + - name: clippy + run: cargo clippy --all-features --all-targets - # - name: Build Documentation - # run: cargo doc --no-deps + - name: rustdoc + env: + RUSTDOCFLAGS: "--cfg=doc_cfg -Zunstable-options --generate-link-to-definition" + RUSTC_BOOTSTRAP: 1 + run: cargo doc --all-features --no-deps - name: Run tests run: cargo test --all-features diff --git a/.github/workflows/rustdoc.yml b/.github/workflows/rustdoc.yml index dea55c2f1..cfd6f58f7 100644 --- a/.github/workflows/rustdoc.yml +++ b/.github/workflows/rustdoc.yml @@ -18,7 +18,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Build Documentation + - name: rustdoc env: RUSTDOCFLAGS: "--cfg=doc_cfg -Zunstable-options --generate-link-to-definition" RUSTC_BOOTSTRAP: 1