forked from gfx-rs/wgpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1fc4a0
commit 23119b1
Showing
4 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,8 @@ on: | |
- trunk | ||
|
||
env: | ||
# We need to use nightly for various features | ||
# when building docs.rs style docs. | ||
NIGHTLY_VERSION: nightly-2025-01-09 | ||
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure. | ||
REPO_MSRV: "1.83" | ||
|
||
CARGO_INCREMENTAL: false | ||
CARGO_TERM_COLOR: always | ||
|
@@ -28,17 +27,21 @@ jobs: | |
persist-credentials: false | ||
|
||
- name: Install documentation toolchain | ||
run: rustup toolchain install ${{ env.NIGHTLY_VERSION }} --no-self-update --profile=minimal | ||
run: | | ||
rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal | ||
rustup override set ${{ env.REPO_MSRV }} | ||
- name: caching | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: doc-build | ||
|
||
- name: Build the docs (nightly) | ||
- name: Build the docs | ||
run: | | ||
cargo +${{ env.NIGHTLY_VERSION }} doc --no-deps --lib | ||
cargo doc --no-deps --lib --document-private-items | ||
env: | ||
RUSTDOCFLAGS: --cfg docsrs | ||
|
||
- name: Build the docs (stable) | ||
run: cargo +stable doc --no-deps --lib | ||
if: ${{ failure() }} | ||
RUSTC_BOOTSTRAP: 1 | ||
|
||
- name: Deploy the docs | ||
uses: JamesIves/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters