-
Notifications
You must be signed in to change notification settings - Fork 24
32 lines (27 loc) · 1.08 KB
/
wasm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: WASM
on: [push]
jobs:
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Emscripten
uses: lovasoa/setup-emscripten@v1
- name: configure
run: mkdir build; cd build; emconfigure cmake -DWASM=true -DWASM_EMBED=false -DTAG_VERSION=$CI_COMMIT_TAG -DTRANSPORTS=false -DIN3_LIB=false -DBUILD_DOC=false -DIN3API=true -DUSE_CURL=false -DCMD=false -DCMAKE_BUILD_TYPE=MINSIZEREL ..
- name: make
run: cd build; make
- name: test
run: cd wasm/test; npm i; npm test
asmjs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Emscripten
uses: lovasoa/setup-emscripten@v1
- name: configure
run: mkdir build; cd build; emconfigure cmake -DWASM=true -DASMJS=true -DWASM_EMBED=false -DTAG_VERSION=$CI_COMMIT_TAG -DTRANSPORTS=false -DIN3_LIB=false -DBUILD_DOC=false -DIN3API=true -DUSE_CURL=false -DCMD=false -DCMAKE_BUILD_TYPE=MINSIZEREL ..
- name: make
run: cd build; make
- name: test
run: cd wasm/test; npm i; npm test