Skip to content

Commit

Permalink
fix: move rustup update after caching step
Browse files Browse the repository at this point in the history
  • Loading branch information
john-cd committed Dec 22, 2023
1 parent 8f97ebd commit 19be747
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ jobs:
steps:
- uses: actions/checkout@v4
## Rust
- name: Install rustup
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
Expand All @@ -51,6 +47,10 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Install rustup
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
- name: Install rustfmt and clippy
run: |
rustup component add rustfmt
Expand Down

0 comments on commit 19be747

Please sign in to comment.