Skip to content

Commit df610a3

Browse files
committed
fix wasm
1 parent f9b3c7c commit df610a3

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)