Skip to content

Commit 316cf02

Browse files
authored
CI: cache cargo install mdbook
1 parent 76329b2 commit 316cf02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/mdbook.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
MDBOOK_VERSION: 0.4.21
3333
steps:
3434
- uses: actions/checkout@v3
35-
- name: Install mdBook
36-
run: |
37-
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
38-
rustup update
39-
cargo install --version ${MDBOOK_VERSION} mdbook
35+
- name: Install mdbook
36+
uses: baptiste0928/cargo-install@v2
37+
with:
38+
crate: mdbook
39+
version: "^0.4.21"
4040
- name: Setup Pages
4141
id: pages
4242
uses: actions/configure-pages@v3

0 commit comments

Comments
 (0)