File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed
Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -26,19 +26,19 @@ jobs:
2626 with :
2727 deno-version : 2.x
2828
29+ - name : Setup Rust
30+ uses : dtolnay/rust-toolchain@stable
31+
2932 - name : Install mdbook
3033 uses : peaceiris/actions-mdbook@v2
3134 with :
3235 mdbook-version : ${{ env.MDBOOK_VERSION }}
3336
34- - name : Setup cache
35- uses : Swatinem/rust-cache@v2
36- with :
37- prefix-key : " mdbook-template/gh-actions-cache"
38-
3937 - name : Install mdbook plugins
40- run : |
41- cargo install mdbook-pagetoc --version ${{ env.MDBOOK_PAGETOC_VERSION }}
38+ uses : baptiste0928/cargo-install@v3
39+ with :
40+ crate : mdbook-pagetoc
41+ version : ${{ env.MDBOOK_PAGETOC_VERSION }}
4242
4343 - name : Run fmt
4444 run : |
Original file line number Diff line number Diff line change @@ -38,14 +38,11 @@ jobs:
3838 with :
3939 mdbook-version : ${{ env.MDBOOK_VERSION }}
4040
41- - name : Setup cache
42- uses : Swatinem/rust-cache@v2
43- with :
44- prefix-key : " mdbook-template/gh-actions-cache"
45-
4641 - name : Install mdbook plugins
47- run : |
48- cargo install mdbook-pagetoc --version ${{ env.MDBOOK_PAGETOC_VERSION }}
42+ uses : baptiste0928/cargo-install@v3
43+ with :
44+ crate : mdbook-pagetoc
45+ version : ${{ env.MDBOOK_PAGETOC_VERSION }}
4946
5047 - name : Build with mdbook
5148 run : mdbook build
You can’t perform that action at this time.
0 commit comments