github/workflows: add simple_build_wasm
This commit is contained in:
parent
96eb275622
commit
a11d2cbaa1
|
|
@ -35,6 +35,28 @@ jobs:
|
||||||
./configure
|
./configure
|
||||||
make database/database.h
|
make database/database.h
|
||||||
make -j$(nproc)
|
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:
|
# simple_build_mac:
|
||||||
# runs-on: macos-11
|
# runs-on: macos-11
|
||||||
# steps:
|
# steps:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue