Skip to content

Commit

Permalink
Simplify website.yml (valence-rs#553)
Browse files Browse the repository at this point in the history
# 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/[email protected]`
  • Loading branch information
rj00a authored and SelfMadeSystem committed Oct 12, 2023
1 parent 5b192f3 commit 4df7a5b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- name: Install latest mdbook
run: |
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
Expand Down

0 comments on commit 4df7a5b

Please sign in to comment.