Cleanup CI Jobs

This commit is contained in:
Connor Fitzgerald authored and Jim Blandy committed 2025-01-21 13:16:03 -08:00
1 parent a1fc4a0316
commit 23119b1eeb
4 files changed
+29 -19

No files matched your search

+14 -11
View File
@@ -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
- name: Build the docs (nightly)
run: |
cargo +${{ env.NIGHTLY_VERSION }} doc --no-deps --lib
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
run: |
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/github-pages-deploy-action@v4.7.2