14
14
# Update the language picker in index.hbs to link new languages.
15
15
16
16
jobs :
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
-
34
-
35
-
36
-
37
-
38
-
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
-
50
17
create-translation :
51
18
strategy :
52
19
matrix :
74
41
- " zh-CN"
75
42
- " zh-TW"
76
43
runs-on : ubuntu-latest
77
- needs : compile-build-tools
78
44
steps :
79
45
- name : Checkout
80
46
uses : actions/checkout@v5
92
58
sudo apt update
93
59
sudo apt install gettext
94
60
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
100
63
101
64
- name : Make all downloaded tools executable
102
65
run : chmod +x /home/runner/.cargo/bin/*
@@ -136,12 +99,6 @@ jobs:
136
99
- name : Update Rust
137
100
run : rustup update
138
101
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
-
145
102
- name : Make all downloaded tools executable
146
103
run : chmod +x /home/runner/.cargo/bin/*
147
104
@@ -150,6 +107,9 @@ jobs:
150
107
sudo apt update
151
108
sudo apt install gettext
152
109
110
+ - name : Install mdbook
111
+ uses : ./.github/workflows/install-mdbook
112
+
153
113
- name : Download all translations
154
114
uses : actions/download-artifact@v4
155
115
with :
0 commit comments