Skip to content

Commit 8499f3b

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 8499f3b

File tree

1 file changed

+5
-45
lines changed

1 file changed

+5
-45
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 45 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,11 +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/
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

Comments
 (0)