From c600da1a7e9de17bea14cb2c91046bd30a60c8a5 Mon Sep 17 00:00:00 2001 From: Romain Ruetschi <106849+romac@users.noreply.github.com> Date: Mon, 17 Jul 2023 21:49:46 +0200 Subject: [PATCH] Fix mdbook-toc compilation error --- .github/workflows/guide.yml | 39 ++++--------------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/.github/workflows/guide.yml b/.github/workflows/guide.yml index 9d4e731101..11d3851f66 100644 --- a/.github/workflows/guide.yml +++ b/.github/workflows/guide.yml @@ -17,45 +17,14 @@ concurrency: jobs: guide: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - - name: cache .cargo directory - uses: actions/cache@v3 + - name: Install mdbook and plugins + uses: taiki-e/install-action@v2 with: - path: ~/.cargo - key: cargo-dir - restore-keys: | - cargo-dir - - - name: Install mdbook - uses: actions-rs/install@v0.1 - with: - crate: mdbook - version: latest - use-tool-cache: true - - - name: Install mdbook-mermaid - uses: actions-rs/install@v0.1 - with: - crate: mdbook-mermaid - version: latest - use-tool-cache: true - - - name: Install mdbook-template - uses: actions-rs/install@v0.1 - with: - crate: mdbook-template - version: latest - use-tool-cache: true - - - name: Install mdbook-toc - uses: actions-rs/install@v0.1 - with: - crate: mdbook-toc - version: latest - use-tool-cache: true + tool: mdbook,mdbook-mermaid,mdbook-template,mdbook-toc - name: Build guide run: |