run wasm with iwasm
This commit is contained in:
14
.github/workflows/llgo.yml
vendored
14
.github/workflows/llgo.yml
vendored
@@ -217,9 +217,17 @@ jobs:
|
||||
with:
|
||||
go-version: "1.24.2"
|
||||
|
||||
- name: Install wasmtime and wasi-libc
|
||||
- name: Install wamr
|
||||
run: |
|
||||
git clone https://github.com/bytecodealliance/wasm-micro-runtime.git
|
||||
mkdir wasm-micro-runtime/product-mini/platforms/darwin/build
|
||||
cd wasm-micro-runtime/product-mini/platforms/darwin/build
|
||||
cmake -D WAMR_BUILD_EXCE_HANDLING=1 -D WAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_SHARED_MEMORY=1 -DWAMR_BUILD_LIB_WASI_THREADS=1 -DWAMR_BUILD_LIB_PTHREAD=1 -DCMAKE_BUILD_TYPE=Debug -DWAMR_BUILD_DEBUG_INTERP=1 ..
|
||||
make -j8
|
||||
echo "$PWD" >> $GITHUB_PATH
|
||||
|
||||
- name: Install wasi-libc
|
||||
run: |
|
||||
brew install wasmtime
|
||||
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/libclang_rt.builtins-wasm32-wasi-25.0.tar.gz
|
||||
tar -xvf libclang_rt.builtins-wasm32-wasi-25.0.tar.gz
|
||||
mkdir -p `llvm-config --libdir`/clang/19/lib/wasi/
|
||||
@@ -243,4 +251,4 @@ jobs:
|
||||
file hello.wasm
|
||||
|
||||
# Run the wasm binary using llgo_wasm
|
||||
wasmtime hello.wasm
|
||||
iwasm hello.wasm
|
||||
|
||||
Reference in New Issue
Block a user