Skip to content

Commit 2142618

Browse files
authored
Create build.yml
1 parent 6fbef40 commit 2142618

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build tree-sitter-javascript DLL
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
9+
steps:
10+
- name: Checkout Repository
11+
uses: actions/checkout@v3
12+
13+
- name: Install Dependencies
14+
run: |
15+
choco install cmake ninja --force
16+
RefreshEnv
17+
18+
- name: Build DLL
19+
run: |
20+
mkdir build
21+
cd build
22+
cmake .. -G "Ninja"
23+
ninja
24+
25+
- name: Upload Build Artifact
26+
uses: actions/upload-artifact@v3
27+
with:
28+
name: tree-sitter-javascript-dll
29+
path: build/tree-sitter-javascript.dll

0 commit comments

Comments
 (0)