github/workflows: add simple_build_wasm
This commit is contained in:
parent
96eb275622
commit
a11d2cbaa1
|
|
@ -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)
|
||||
# make -j$(sysctl -n hw.ncpu)
|
||||
|
|
|
|||
Loading…
Reference in New Issue