forked from marian-nmt/marian-dev
-
Notifications
You must be signed in to change notification settings - Fork 7
59 lines (51 loc) · 1.33 KB
/
wasm-customized_marian-ubuntu.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: WASM (wasm-customized marian) Ubuntu
on:
push:
branches: [ master ]
pull_request:
branches: [ "**" ]
jobs:
build-wasm:
name: WASM CPU-only
runs-on: ubuntu-latest
steps:
- name: Setup Emscripten toolchain
uses: mymindstorm/setup-emsdk@v11
with:
version: 3.1.8
- name: Verify Emscripten setup
run: emcc -v
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure builds
run: |
mkdir -p build-wasm
cd build-wasm
emcmake cmake \
-DCOMPILE_CUDA=off \
-DUSE_DOXYGEN=off \
-DCOMPILE_EXAMPLES=off \
-DCOMPILE_SERVER=off \
-DCOMPILE_TESTS=off \
-DUSE_FBGEMM=off \
-DUSE_SENTENCEPIECE=on \
-DUSE_STATIC_LIBS=on \
-DUSE_MKL=off \
-DUSE_WASM_COMPATIBLE_SOURCE=on \
-DCOMPILE_WASM=on ../
- name: Compile
working-directory: build-wasm
run: emmake make -j2
- name: Check artifacts
working-directory: build-wasm
run: |
ls -all .
if ls marian-decoder.wasm &>/dev/null && ls marian-decoder.js &>/dev/null
then
echo "Artifacts Successfully Generated"
else
echo "Failure: Artifacts Not Present"
exit 1
fi