|
|
|
@ -405,29 +405,52 @@ jobs:
|
|
|
|
|
cd platforms/cpp/build
|
|
|
|
|
./wasm3_cpp_example
|
|
|
|
|
|
|
|
|
|
# Build as C++ (i.e. to run some C++-related checks)
|
|
|
|
|
build-as-cpp:
|
|
|
|
|
build-maintenance:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
timeout-minutes: 10
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
- name: Run CMake
|
|
|
|
|
env:
|
|
|
|
|
CC: g++
|
|
|
|
|
CFLAGS: -xc++
|
|
|
|
|
- name: Build as C++
|
|
|
|
|
run: |
|
|
|
|
|
mkdir build
|
|
|
|
|
cd build
|
|
|
|
|
cmake -DCMAKE_C_COMPILER_WORKS=1 ..
|
|
|
|
|
- name: Build
|
|
|
|
|
run: |
|
|
|
|
|
cmake --build build
|
|
|
|
|
g++ -xc++ -Dd_m3HasWASI \
|
|
|
|
|
-I../source ../source/*.c ../platforms/app/main.c \
|
|
|
|
|
-O3 -g0 -lm \
|
|
|
|
|
-o wasm3
|
|
|
|
|
- name: Run spec tests
|
|
|
|
|
run: |
|
|
|
|
|
cd test
|
|
|
|
|
./run-spec-test.py
|
|
|
|
|
run: cd test && python3 run-spec-test.py
|
|
|
|
|
- name: Run WASI tests
|
|
|
|
|
run: cd test && python3 run-wasi-test.py --fast
|
|
|
|
|
|
|
|
|
|
- name: Build with debug logs
|
|
|
|
|
run: |
|
|
|
|
|
mkdir build-with-logs
|
|
|
|
|
cd build-with-logs
|
|
|
|
|
g++ -xc++ -Dd_m3HasWASI -Dd_m3LogsDefined \
|
|
|
|
|
-Dd_m3RuntimeStackDumps=1 \
|
|
|
|
|
-Dd_m3TraceExec=1 \
|
|
|
|
|
-Dd_m3LogParse=1 \
|
|
|
|
|
-Dd_m3LogModule=1 \
|
|
|
|
|
-Dd_m3LogCompile=1 \
|
|
|
|
|
-Dd_m3LogWasmStack=1 \
|
|
|
|
|
-Dd_m3LogEmit=1 \
|
|
|
|
|
-Dd_m3LogCodePages=1 \
|
|
|
|
|
-Dd_m3LogExec=1 \
|
|
|
|
|
-Dd_m3LogRuntime=1 \
|
|
|
|
|
-Dd_m3LogStackTrace=1 \
|
|
|
|
|
-Dd_m3LogNativeStack=1 \
|
|
|
|
|
-I../source ../source/*.c ../platforms/app/main.c \
|
|
|
|
|
-O3 -g0 -lm \
|
|
|
|
|
-o wasm3
|
|
|
|
|
|
|
|
|
|
- name: Build with pre-processed operators
|
|
|
|
|
run: |
|
|
|
|
|
cd test
|
|
|
|
|
./run-wasi-test.py
|
|
|
|
|
make -f extra/utils.mk preprocess
|
|
|
|
|
mkdir build-with-preprocess
|
|
|
|
|
cd build-with-preprocess
|
|
|
|
|
g++ -xc++ -Dd_m3HasWASI \
|
|
|
|
|
-I../source ../source/*.c ../platforms/app/main.c \
|
|
|
|
|
-O3 -g0 -lm \
|
|
|
|
|
-o wasm3
|
|
|
|
|