From 8436a810194b01d1cbe6479e33a0c732a28b5ca9 Mon Sep 17 00:00:00 2001 From: Cheng Shao Date: Fri, 15 Nov 2024 16:38:19 +0000 Subject: [PATCH] frontend: use single wasm instance --- .github/workflows/build.yml | 2 +- frontend/index.html | 9 ++-- frontend/index.js | 99 +++++++++++++++++++------------------ 3 files changed, 55 insertions(+), 55 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7668f58..6eaf74a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: - name: test run: | - $CROSS_EMULATOR dist/pandoc.wasm pandoc/README.md -o pandoc/README.rst + wasmtime run --dir $PWD::/ -- dist/pandoc.wasm pandoc/README.md -o pandoc/README.rst head --lines=20 pandoc/README.rst - name: upload-pages-artifact diff --git a/frontend/index.html b/frontend/index.html index d47461d..f3f631e 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -67,16 +67,13 @@