Skip to content

Commit 9a54440

Browse files
Remove rust binary precompilation step.
The install-mdbook step now uses --binstall where available. Once we build more binaries for our dependencies, this becomes faster without further work
1 parent 5c11119 commit 9a54440

File tree

1 file changed

+5
-56
lines changed

1 file changed

+5
-56
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,6 @@ env:
1414
# Update the language picker in index.hbs to link new languages.
1515

1616
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-
5017
create-translation:
5118
strategy:
5219
matrix:
@@ -74,7 +41,6 @@ jobs:
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
@@ -92,22 +58,8 @@ jobs:
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/
100-
101-
- name: Make all downloaded tools executable
102-
run: chmod +x /home/runner/.cargo/bin/*
103-
104-
- name: Install dependencies for mdbook-pandoc
105-
run: |
106-
sudo apt-get update
107-
sudo apt-get install -y texlive texlive-luatex texlive-lang-cjk texlive-lang-arabic librsvg2-bin fonts-noto
108-
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.7.0.1/pandoc-3.7.0.1-linux-amd64.tar.gz | tar zxf -
109-
echo "$PWD/pandoc-3.7.0.1/bin" >> $GITHUB_PATH
110-
shell: bash
61+
- name: Install mdbook
62+
uses: ./.github/workflows/install-mdbook
11163

11264
- name: Build course in English
11365
if: matrix.language == 'en'
@@ -136,12 +88,6 @@ jobs:
13688
- name: Update Rust
13789
run: rustup update
13890

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-
14591
- name: Make all downloaded tools executable
14692
run: chmod +x /home/runner/.cargo/bin/*
14793

@@ -150,6 +96,9 @@ jobs:
15096
sudo apt update
15197
sudo apt install gettext
15298
99+
- name: Install mdbook
100+
uses: ./.github/workflows/install-mdbook
101+
153102
- name: Download all translations
154103
uses: actions/download-artifact@v4
155104
with:

0 commit comments

Comments
 (0)