Update build and add testing dockerfile and run

This commit is contained in:
tonibofarull 2022-06-12 12:52:03 +02:00
parent 9383336154
commit 2981fc2afc
3 changed files with 15 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build.essential \
cmake \
git \
wget
RUN wget -q https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-14/wasi-sdk-14.0-linux.tar.gz && \
tar xf wasi-sdk-*-linux.tar.gz -C /opt && rm -f wasi-sdk-*-linux.tar.gz && \
mv /opt/wasi-sdk-$(WASI_SDK_VERSION) /opt/wasi-sdk

1
run.sh Normal file
View File

@ -0,0 +1 @@
docker run -it -v $PWD:/home wamr

View File

@ -51,6 +51,7 @@ OUT_FILE=${i%.*}.wasm
-Wl,--export=float_to_string \ -Wl,--export=float_to_string \
-Wl,--export=calculate\ -Wl,--export=calculate\
-Wl,--allow-undefined \ -Wl,--allow-undefined \
-I/home/core/iwasm/libraries/wasi-nn \
-o ${OUT_DIR}/wasm-apps/${OUT_FILE} ${APP_SRC} -o ${OUT_DIR}/wasm-apps/${OUT_FILE} ${APP_SRC}