summaryrefslogtreecommitdiffstats
path: root/src/doc/rustc-dev-guide/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/rustc-dev-guide/.github/workflows/ci.yml')
-rw-r--r--src/doc/rustc-dev-guide/.github/workflows/ci.yml21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/doc/rustc-dev-guide/.github/workflows/ci.yml b/src/doc/rustc-dev-guide/.github/workflows/ci.yml
index c571d408d..a21e342cb 100644
--- a/src/doc/rustc-dev-guide/.github/workflows/ci.yml
+++ b/src/doc/rustc-dev-guide/.github/workflows/ci.yml
@@ -14,28 +14,28 @@ jobs:
if: github.repository == 'rust-lang/rustc-dev-guide'
runs-on: ubuntu-latest
env:
- MDBOOK_VERSION: 0.4.12
- MDBOOK_LINKCHECK_VERSION: 0.7.2
- MDBOOK_MERMAID_VERSION: 0.10.0
- MDBOOK_TOC_VERSION: 0.6.1
+ MDBOOK_VERSION: 0.4.21
+ MDBOOK_LINKCHECK_VERSION: 0.7.6
+ MDBOOK_MERMAID_VERSION: 0.11.2
+ MDBOOK_TOC_VERSION: 0.9.0
DEPLOY_DIR: book/html
BASE_SHA: ${{ github.event.pull_request.base.sha }}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
with:
# linkcheck needs the base commit.
fetch-depth: 0
- name: Cache binaries
id: mdbook-cache
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: |
~/.cargo/bin
key: ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}--${{ env.MDBOOK_MERMAID_VERSION }}
- name: Cache linkcheck
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: |
~/book/linkcheck
@@ -49,10 +49,9 @@ jobs:
- name: Install latest nightly Rust toolchain
if: steps.mdbook-cache.outputs.cache-hit != 'true'
- uses: actions-rs/toolchain@v1
- with:
- toolchain: nightly
- override: true
+ run: |
+ rustup update nightly
+ rustup override set nightly
- name: Install Dependencies
if: steps.mdbook-cache.outputs.cache-hit != 'true'