Skip to content

Commit a7ca0ac

Browse files
authored
ci: build latest docs.rs environment to defend against failed deployments (#1485)
ci: build latest docs.rs environment to defend against faild deployments
1 parent 3b42e20 commit a7ca0ac

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/release_readiness.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -176,27 +176,10 @@ jobs:
176176
uses: actions/checkout@v4
177177

178178
- name: Install Rust toolchain
179-
uses: dtolnay/rust-toolchain@master
180-
with:
181-
toolchain: nightly-2025-06-05
182-
# Nightly is used here because the docs.rs build
183-
# uses nightly and we use doc_cfg features that are
184-
# not in stable Rust as of this writing (Rust 1.87).
179+
uses: dtolnay/rust-toolchain@nightly
185180

186-
# Pinning to specific nightly build for now. More recent versions
187-
# introduce a lifetime check that creates a whole slew of build
188-
# errors.
189-
190-
- name: Run cargo docs
191-
# This is intended to mimic the docs.rs build
192-
# environment. The goal is to fail PR validation
193-
# if the subsequent release would result in a failed
194-
# documentation build on docs.rs.
195-
run: cargo +nightly-2025-06-05 doc --workspace --features "$FEATURES" --no-deps
196-
env:
197-
FEATURES: ${{needs.get-features.outputs.openssl-features}}
198-
RUSTDOCFLAGS: --cfg docsrs
199-
DOCS_RS: 1
181+
- name: Build docs.rs
182+
uses: dtolnay/install@cargo-docs-rs
200183

201184
unused_deps:
202185
name: Check for unused dependencies

0 commit comments

Comments
 (0)