Skip to content

Commit 38702b0

Browse files
Upload the already built i18n-report binary and download it in later steps.
This should be a massive performance gain in the publish step as we don't build several rust tools from scratch anymore for each language
1 parent 97be467 commit 38702b0

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ jobs:
6161
- name: Install mdbook
6262
uses: ./.github/workflows/install-mdbook
6363

64+
- name: Upload i18n-report for the publish step
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: tool-i18n-report
68+
path: .cargo/bin/i18n-report
69+
6470
- name: Build course in English
6571
if: matrix.language == 'en'
6672
run: .github/workflows/build.sh en book
@@ -88,16 +94,11 @@ jobs:
8894
- name: Update Rust
8995
run: rustup update
9096

91-
- name: Setup Rust cache
92-
uses: ./.github/workflows/setup-rust-cache
93-
94-
- name: Install Gettext
95-
run: |
96-
sudo apt update
97-
sudo apt install gettext
98-
99-
- name: Install mdbook
100-
uses: ./.github/workflows/install-mdbook
97+
- name: Download i18n-report
98+
uses: actions/download-artifact@v4
99+
with:
100+
path: .cargo/bin
101+
name: tool-i18n-report
101102

102103
- name: Download all translations
103104
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)