Skip to content

Commit 283c10a

Browse files
committed
use an image instead of building the entire Rust toolchain
1 parent 0e605d3 commit 283c10a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/mdbook.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@ on:
99
jobs:
1010
deploy-book:
1111
runs-on: ubuntu-latest
12+
container:
13+
image: peaceiris/mdbook:latest
1214
steps:
1315
- name: Checkout
1416
uses: actions/checkout@v4
1517

16-
- name: Setup Rust toolchain
17-
uses: actions-rs/toolchain@v1
18-
with:
19-
toolchain: stable
18+
# Avoid building the entire Rust toolchain, use peaceiris image instead.
19+
# - name: Setup Rust toolchain
20+
# uses: actions-rs/toolchain@v1
21+
# with:
22+
# toolchain: stable
2023

2124
- name: Install mdBook and preprocessors
2225
run: |
23-
cargo install mdbook mdbook-katex
26+
cargo install mdbook-katex
2427
2528
- name: Build mdBook
2629
run: mdbook build documentation/mdbook

0 commit comments

Comments
 (0)