1414 # Update the language picker in index.hbs to link new languages.
1515
1616jobs :
17- compile-build-tools :
18- runs-on : ubuntu-latest
19- steps :
20- - name : Checkout
21- uses : actions/checkout@v4
22-
23- - name : Update Rust
24- run : rustup update
25-
26- - name : Setup Rust cache
27- uses : ./.github/workflows/setup-rust-cache
28-
29- - name : Install build tools
30- uses : taiki-e/install-action@v2
31- with :
32- # testing without version first but should be
33- # mdbook@0.4.48
34- # mdbook-svgbob@0.2.2
35- # mdbook-pandoc@0.10.4
36- # mdbook-i18n-helpers@0.3.6
37- # i18n-report@0.2.0
38- # mdbook-linkcheck2@0.9.1
39- tool : mdbook,mdbook-svgbob,mdbook-pandoc,mdbook-i18n-helpers,i18n-report,mdbook-linkcheck2
40-
41- - name : Install mdbook
42- run : cargo xtask install-tools
43-
44- - name : Upload pre-built-tools for the next tasks
45- uses : actions/upload-artifact@v4
46- with :
47- name : pre-built-tools
48- path : /home/runner/.cargo/bin/
49-
5017 create-translation :
5118 strategy :
5219 matrix :
7441 - " zh-CN"
7542 - " zh-TW"
7643 runs-on : ubuntu-latest
77- needs : compile-build-tools
7844 steps :
7945 - name : Checkout
8046 uses : actions/checkout@v5
9258 sudo apt update
9359 sudo apt install gettext
9460
95- - name : Download pre-built tools
96- uses : actions/download-artifact@v4
97- with :
98- name : pre-built-tools
99- path : /home/runner/.cargo/bin/
61+ - name : Install mdbook
62+ uses : ./.github/workflows/install-mdbook
10063
10164 - name : Make all downloaded tools executable
10265 run : chmod +x /home/runner/.cargo/bin/*
@@ -136,12 +99,6 @@ jobs:
13699 - name : Update Rust
137100 run : rustup update
138101
139- - name : Download pre-built tools
140- uses : actions/download-artifact@v4
141- with :
142- path : /home/runner/.cargo/bin/
143- name : pre-built-tools
144-
145102 - name : Make all downloaded tools executable
146103 run : chmod +x /home/runner/.cargo/bin/*
147104
@@ -150,6 +107,9 @@ jobs:
150107 sudo apt update
151108 sudo apt install gettext
152109
110+ - name : Install mdbook
111+ uses : ./.github/workflows/install-mdbook
112+
153113 - name : Download all translations
154114 uses : actions/download-artifact@v4
155115 with :
0 commit comments