File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments