From 4df7a5b0a4a7ffa0355f9712b8351dc0667df42f Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Mon, 9 Oct 2023 21:49:49 -0700 Subject: [PATCH] Simplify website.yml (#553) # Objective - Make "setup Rust toolchain" step consistent with ci.yml. - Stop website.yml from failing due to outdated Rust toolchain (caching issue?) # Solution - Use `actions-rust-lang/setup-rust-toolchain@v1.5.0` --- .github/workflows/website.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 1d3e0cf26..13f0abd37 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -26,16 +26,8 @@ jobs: - uses: actions/checkout@v3 with: submodules: recursive - - name: Cache - uses: Swatinem/rust-cache@v2 - id: cache - with: - prefix-key: "website" - - name: Install rust toolchain - if: steps.cache.outputs.cache-hit != 'true' - run: | - curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh - rustup update + - name: Setup Rust toolchain and cache + uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 - name: Install latest mdbook run: | tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')