-
Notifications
You must be signed in to change notification settings - Fork 17
37 lines (35 loc) · 1013 Bytes
/
build.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
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
emsdk-version: [3.1.21]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: build emulators
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install -g yarn
- run: yarn
- run: yarn run eslint src --ext ts,tsx --max-warnings 0
- run: yarn run eslint test --ext ts,tsx --max-warnings 0
- run: yarn run tsc --noEmit
- run: git clone https://github.com/emscripten-core/emsdk.git
- run: cd emsdk && ./emsdk install ${{ matrix.emsdk-version }} && ./emsdk activate ${{ matrix.emsdk-version }} && cd ..
- run: source ./emsdk/emsdk_env.sh && yarn run gulp
- name: upload
uses: actions/[email protected]
with:
name: 'dist'
path: 'dist'