1 parent 7c07e92 commit 505f5d7Copy full SHA for 505f5d7
1 file changed
.github/workflows/publish-web.yml
@@ -43,6 +43,16 @@ jobs:
43
- name: Install trunk
44
run: cargo install --locked trunk@0.21.14
45
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
+
56
- name: Build project
57
working-directory: ./web
58
run: trunk build --release --verbose
0 commit comments