File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
build :
12
12
runs-on : ubuntu-latest
13
+ env :
14
+ EMSCRIPTEN_VERSION : ' 2.0.17'
13
15
steps :
14
16
- uses : actions/checkout@v3
15
17
- name : Set up Node
16
18
uses : actions/setup-node@v3
17
19
with :
18
20
node-version : ' 18'
21
+ - name : Install Emscripten
22
+ uses : mymindstorm/setup-emsdk@v12
23
+ with :
24
+ version : ${{ env.EMSCRIPTEN_VERSION }}
19
25
- name : Install dependencies
20
26
run : npm install
21
27
- name : Generate parser
27
33
test -z "$diff"
28
34
- name : Run tests
29
35
run : npm test
36
+ - name : Build WASM binary
37
+ run : npm run build-wasm
38
+ - name : Upload WASM binary
39
+ uses : actions/upload-artifact@v3
40
+ with :
41
+ name : tree-sitter-kotlin.wasm
42
+ path : ./tree-sitter-kotlin.wasm
30
43
- name : Set up Rust
31
44
uses : actions-rs/toolchain@v1
32
45
with :
Original file line number Diff line number Diff line change 7
7
jobs :
8
8
deploy :
9
9
runs-on : ubuntu-latest
10
+ env :
11
+ EMSCRIPTEN_VERSION : ' 2.0.17'
10
12
steps :
11
13
- uses : actions/checkout@v3
12
14
- name : Set up Node
13
15
uses : actions/setup-node@v3
14
16
with :
15
17
node-version : ' 18'
18
+ - name : Install Emscripten
19
+ uses : mymindstorm/setup-emsdk@v12
20
+ with :
21
+ version : ${{ env.EMSCRIPTEN_VERSION }}
16
22
- name : Install dependencies
17
23
run : npm install
18
24
- name : Compile grammar
You can’t perform that action at this time.
0 commit comments