diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index af3eec4c..2e99f489 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,28 @@ jobs: ./configure make database/database.h make -j$(nproc) + simple_build_wasm: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Get Dependencies + run: | + sudo apt-get install -y csh + git clone https://github.com/emscripten-core/emsdk.git + cd emsdk + ./emsdk install latest + ./emsdk activate latest + - name: Build + run: | + source ./emsdk/emsdk_env.sh + emconfigure ./configure --without-cairo --without-opengl --without-x --disable-readline + emmake make + - name: archive wasm bundle + uses: actions/upload-artifact@v3 + with: + name: magic-wasm-bundle + path: | + ${{ github.workspace }}/magic/magic.wasm # simple_build_mac: # runs-on: macos-11 # steps: @@ -48,4 +70,4 @@ jobs: # export PATH="/opt/X11/bin:$PATH" # ./scripts/configure_mac # make database/database.h - # make -j$(sysctl -n hw.ncpu) \ No newline at end of file + # make -j$(sysctl -n hw.ncpu)