Skip to content

Commit 0597401

Browse files
authored
Create build1.yml
1 parent a54bafd commit 0597401

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build1.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 llvm --force
16+
choco install visualstudio2022buildtools --force
17+
choco install visualstudio2022-workload-vctools --force
18+
RefreshEnv
19+
20+
- name: Setup MSVC Compiler
21+
shell: cmd
22+
run: |
23+
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
24+
25+
- name: Clone tree-sitter core
26+
run: |
27+
git clone --depth 1 https://github.com/tree-sitter/tree-sitter.git ../tree-sitter
28+
29+
- name: Build DLL
30+
run: |
31+
mkdir build
32+
cd build
33+
cmake .. -G "Ninja"
34+
ninja
35+
36+
- name: Upload Build Artifact
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: tree-sitter-javascript-dll
40+
path: build/tree-sitter-javascript.dll

0 commit comments

Comments
 (0)