File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -34,21 +34,13 @@ jobs:
3434 node-version : 22
3535 cache : pnpm
3636
37- - name : Install TinyGo
38- run : |
39- wget -q https://github.com/tinygo-org/tinygo/releases/download/v0.40.1/tinygo_0.40.1_amd64.deb -O /tmp/tinygo.deb
40- sudo dpkg -i /tmp/tinygo.deb
41-
42- - name : Install Binaryen
43- run : sudo apt-get install -y binaryen
44-
4537 - name : Build WASM
4638 run : |
4739 GOOS=js GOARCH=wasm go build -ldflags="-s -w" -trimpath -o gnata.wasm ./wasm/
4840 cp "$(go env GOROOT)/lib/wasm/wasm_exec.js" wasm_exec.js
49- tinygo build -o gnata-lsp.wasm -no-debug -gc=conservative -scheduler=none -panic=trap -target wasm ./editor/
50- wasm-opt -Oz --enable-bulk-memory gnata-lsp.wasm -o gnata-lsp.wasm
51- cp "$(tinygo env TINYGOROOT)/targets/ wasm_exec.js" lsp-wasm_exec.js
41+ # LSP WASM ships pre-built in @gnata-sqlite/react
42+ cp react/wasm/ gnata-lsp.wasm gnata-lsp.wasm
43+ cp react/wasm/lsp- wasm_exec.js lsp-wasm_exec.js
5244
5345 - name : Install dependencies
5446 run : pnpm install --frozen-lockfile
You can’t perform that action at this time.
0 commit comments