-
Notifications
You must be signed in to change notification settings - Fork 44
44 lines (43 loc) · 1 KB
/
js.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
33
34
35
36
37
38
39
40
41
42
43
44
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
release:
types:
- published
jobs:
test:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: laz-perf
- name: Emsdk
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install latest
./emsdk activate latest
- name: Wasm
run: |
. emsdk/emsdk_env.sh
cd laz-perf
mkdir build
cd build
cmake \
-G "Unix Makefiles" \
-DCMAKE_TOOLCHAIN_FILE="$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" \
-DCMAKE_BUILD_TYPE=Release \
..
$EMSDK/upstream/emscripten/emmake make VERBOSE=1
cp ./cpp/emscripten/laz-perf.* ../js/src/
- name: Test
run: |
cd laz-perf/js
npm ci
npm test --all