mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
Pin nightly docs version
This commit is contained in:
1 parent
4b82121501
commit
5e06baf80d
3 files changed
+36
-14
No files matched your search
@@ -1,11 +1,18 @@
|
||||
name: Docs
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/docs.yml'
|
||||
push:
|
||||
branches:
|
||||
- trunk
|
||||
|
||||
env:
|
||||
# We need to use nightly for various features
|
||||
# when building docs.rs style docs.
|
||||
NIGHTLY_VERSION: nightly-2023-12-17
|
||||
|
||||
CARGO_INCREMENTAL: false
|
||||
CARGO_TERM_COLOR: always
|
||||
RUST_BACKTRACE: full
|
||||
@@ -20,12 +27,12 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install nightly toolchain
|
||||
run: rustup toolchain install nightly --no-self-update --profile=minimal
|
||||
- name: Install documentation toolchain
|
||||
run: rustup toolchain install ${{ env.NIGHTLY_VERSION }} --no-self-update --profile=minimal
|
||||
|
||||
- name: Build the docs (nightly)
|
||||
run: |
|
||||
cargo +nightly doc --no-deps --lib
|
||||
cargo +${{ env.NIGHTLY_VERSION }} doc --no-deps --lib
|
||||
env:
|
||||
RUSTDOCFLAGS: --cfg docsrs
|
||||
|
||||
@@ -35,6 +42,7 @@ jobs:
|
||||
|
||||
- name: Deploy the docs
|
||||
uses: JamesIves/github-pages-deploy-action@v4.5.0
|
||||
if: github.ref == 'refs/heads/trunk'
|
||||
with:
|
||||
token: ${{ secrets.WEB_DEPLOY }}
|
||||
folder: target/doc
|
||||
|
||||
Reference in new issue
Block a user