From 8a2528ba319f5d2cf8eac36fc524fdbdd791c2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Wed, 26 Jun 2024 17:55:17 +0300 Subject: [PATCH] Move rustdoc job to workspace.yml --- .github/workflows/ci.yml | 10 ---------- .github/workflows/workspace.yml | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74188db1..fde31fd0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,16 +48,6 @@ jobs: - run: cargo test --release --features getrandom - run: cargo test --release --features serde - doc: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: RustCrypto/actions/cargo-cache@master - - uses: dtolnay/rust-toolchain@master - with: - toolchain: stable - - run: cargo doc --all-features - minimal-versions: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 1b882608..c8e98b50 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -21,7 +21,7 @@ jobs: components: clippy - run: cargo clippy --all -- -D warnings - rustfmt: + fmt: runs-on: ubuntu-latest steps: - name: Checkout sources @@ -35,3 +35,18 @@ jobs: - name: Run cargo fmt run: cargo fmt --all -- --check + + doc: + name: rustdoc + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + # We need Nightly for doc_auto_cfg + toolchain: nightly-2024-06-25 + - uses: Swatinem/rust-cache@v2 + - name: Generate Docs + env: + RUSTDOCFLAGS: "-Dwarnings --cfg docsrs" + run: cargo doc --no-deps --features std,pem,serde,hazmat,sha2