Skip to content

Commit 505f5d7

Browse files
committed
Update publish-web.yml
1 parent 7c07e92 commit 505f5d7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/publish-web.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ jobs:
4343
- name: Install trunk
4444
run: cargo install --locked trunk@0.21.14
4545

46+
- name: Install binaryen (wasm-opt)
47+
# Required by the Trunk post-build hook in web/Trunk.toml.
48+
# Pinned to a specific release rather than using apt's floating version.
49+
env:
50+
BINARYEN_VERSION: "123"
51+
run: |
52+
curl -fsSL "https://github.com/WebAssembly/binaryen/releases/download/version_${BINARYEN_VERSION}/binaryen-version_${BINARYEN_VERSION}-x86_64-linux.tar.gz" \
53+
| sudo tar -xz -C /usr/local --strip-components=1
54+
wasm-opt --version
55+
4656
- name: Build project
4757
working-directory: ./web
4858
run: trunk build --release --verbose

0 commit comments

Comments
 (0)