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