-
Notifications
You must be signed in to change notification settings - Fork 1.9k
39 lines (36 loc) · 947 Bytes
/
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
name: Wasm
on:
push:
branches:
- master
- 'releases/**'
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: lukka/get-cmake@latest
- uses: mymindstorm/setup-emsdk@v11
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Configure
run: emcmake cmake --preset wasm -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=$(pwd)/ext_libs/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
run: cmake --build build --target vw-wasm
- uses: actions/upload-artifact@v3
with:
path: wasm
- name: Test
working-directory: wasm
run: |
npm install
npm test