Skip to content

Commit

Permalink
Move rustdoc job to workspace.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Jun 26, 2024
1 parent c9fabe6 commit 8a2528b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
components: clippy
- run: cargo clippy --all -- -D warnings

rustfmt:
fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand All @@ -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

0 comments on commit 8a2528b

Please sign in to comment.