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 Gettext
30
+ run : |
31
+ sudo apt update
32
+ sudo apt install gettext
33
+
34
+ - name : Install mdbook
35
+ uses : ./.github/workflows/install-mdbook
36
+
37
+ - name : Upload pre-built-tools for the publish step
38
+ uses : actions/upload-artifact@v4
39
+ with :
40
+ name : pre-built-tools
41
+ path : $HOME/.cargo/bin/
42
+
17
43
create-translation :
18
44
strategy :
19
45
matrix :
41
67
- " zh-CN"
42
68
- " zh-TW"
43
69
runs-on : ubuntu-latest
70
+ needs : compile-build-tools
44
71
steps :
45
72
- name : Checkout
46
73
uses : actions/checkout@v5
@@ -58,14 +85,11 @@ jobs:
58
85
sudo apt update
59
86
sudo apt install gettext
60
87
61
- - name : Install mdbook
62
- uses : ./.github/workflows/install-mdbook
63
-
64
- - name : Upload i18n-report for the publish step
65
- uses : actions/upload-artifact@v4
88
+ - name : Download pre-built tools
89
+ uses : actions/download-artifact@v4
66
90
with :
67
- name : tool-i18n-report
68
- path : .cargo/bin/i18n-report
91
+ name : pre-built-tools
92
+ path : $HOME/ .cargo/bin/
69
93
70
94
- name : Build course in English
71
95
if : matrix.language == 'en'
@@ -94,11 +118,11 @@ jobs:
94
118
- name : Update Rust
95
119
run : rustup update
96
120
97
- - name : Download i18n-report
121
+ - name : Download pre-built tools
98
122
uses : actions/download-artifact@v4
99
123
with :
100
- path : .cargo/bin
101
- name : tool-i18n-report
124
+ path : $HOME/ .cargo/bin/
125
+ name : pre-built-tools
102
126
103
127
- name : Download all translations
104
128
uses : actions/download-artifact@v4
0 commit comments