Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize rust docs args and use of RUSTC_BOOTSTRAP #2120

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,7 @@ jobs:
uses: actions/configure-pages@v5
- name: Build Docs
run: |
rustup target add wasm32-unknown-unknown --toolchain nightly-2024-08-01
rustup component add rust-src --toolchain nightly-2024-08-01
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly-2024-08-01 doc --no-deps --workspace --features frequency
RUSTC_BOOTSTRAP=1 RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo doc --no-deps --workspace --features frequency
- name: Fix file permissions
shell: sh
run: |
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/verify-pr-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,9 @@ jobs:
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Install Nightly Toolchain
run: rustup toolchain install nightly-2024-08-01
- name: Add Required Components
run: |
rustup target add wasm32-unknown-unknown --toolchain nightly-2024-08-01
rustup component add rust-src --toolchain nightly-2024-08-01
- name: Build Docs
run: |
RUSTDOCFLAGS="--enable-index-page --check -Zunstable-options" cargo +nightly-2024-08-01 doc --no-deps --features frequency
RUSTC_BOOTSTRAP=1 RUSTDOCFLAGS="--enable-index-page --check -Zunstable-options" cargo doc --no-deps --workspace --features frequency
verify-rust-packages-and-deps:
needs: changes
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ benchmarks-capacity:

.PHONY: docs
docs:
RUSTC_BOOTSTRAP=1 RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo doc --no-deps --features frequency
RUSTC_BOOTSTRAP=1 RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo doc --no-deps --workspace --features frequency

# Cleans unused docker resources and artifacts
.PHONY: docs
Expand Down