-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.06 KB
/
build_ci_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
33
34
35
36
37
38
39
40
41
42
name: Build CI [WebAssembly]
on:
push:
paths:
- .github/workflows/**
- include/**
- src/**
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Pull submodules
run: |
git submodule update --init --recursive
git pull --recurse-submodules
- name: Install Emscripten
uses: mymindstorm/setup-emsdk@v14
- name: Verify Emscripten
run: em++ -v
- name: Build WASM
run: |
mkdir dist
em++ --bind -Wno-header-guard -Iinclude -Ilib/QuickDigest5/include -pipe -O3 -ffast-math -std=c++17 -funroll-loops $(find lib/QuickDigest5/src -type f -name "*.cpp") $(find src -type f -name "*.cpp") -sEXPORTED_FUNCTIONS=_executeSource -sEXPORTED_RUNTIME_METHODS=ccall,cwrap -fexceptions -o dist/n8.js
ls -ral dist
- name: Upload dist folder
uses: actions/upload-artifact@v4
with:
name: n8-wasm
path: dist/
retention-days: 1