Skip to content

Commit

Permalink
Use emscripten to create a wasm build (#5634)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo authored Oct 29, 2021
1 parent d1fbf01 commit e7a54db
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ jobs:
uses: actions/checkout@v2

- name: Configure CMake and build
uses: mymindstorm/setup-emsdk@v9
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_SYSTEM_NAME=WASM -DCMAKE_SYSTEM_VERSION=21
make -j $(nproc)
tar -cvf z3-build-wasm.tar *.jar *.so
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: build-wasm
path: build/z3-build-wasm.tar
emcmake cmake \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/emsdk/upstream/emscripten/system \
-DZ3_BUILD_LIBZ3_SHARED=OFF \
-DZ3_ENABLE_EXAMPLE_TARGETS=OFF \
-DZ3_BUILD_TEST_EXECUTABLES=OFF \
-DZ3_BUILD_EXECUTABLE=OFF \
-DZ3_SINGLE_THREADED=ON \
-DCMAKE_CXX_FLAGS="-s DISABLE_EXCEPTION_CATCHING=0" \
..; \
make ; make install; \

0 comments on commit e7a54db

Please sign in to comment.