-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (58 loc) · 2.17 KB
/
windows.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Test install fixture on windows
on:
pull_request:
push:
workflow_dispatch:
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Install C/C++ Compiler
uses: rlalik/setup-cpp-compiler@master
with:
compiler: clang-latest
- name: Install MSVC Compiler Toolchain
uses: ilammy/msvc-dev-cmd@v1
- name: Install Lua
uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.4"
- name: Install Luarocks
uses: hishamhm/gh-actions-luarocks@master
with:
luarocksVersion: "3.11.0"
# - name: Install Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.11'
# - name: Install Lua and LuaRocks with hererocks
# run: |
# python -m pip install hererocks
# python -m hererocks env --lua 5.1 --luarocks latest
- name: Install tree-sitter CLI
uses: baptiste0928/cargo-install@v3
with:
crate: tree-sitter-cli
# - uses: actions/setup-node@v4
# if: ${{ matrix.parsers.install_info.requires_generate_from_grammar }}
- name: Install build dependencies
run: |
# . env/bin/activate
luarocks --local --lua-version=5.4 install luafilesystem --server='https://nvim-neorocks.github.io/rocks-binaries/'
luarocks --local --lua-version=5.4 make ./luarocks-build-treesitter-parser-scm-1.rockspec
- name: Install tree-sitter parser
run: |
# . env/bin/activate
luarocks --local --lua-version=5.4 install tree-sitter-haskell --dev
mv C:/Users/runneradmin/AppData/Roaming/luarocks/share/lua/5.4 C:/Users/runneradmin/AppData/Roaming/luarocks/share/lua/5.1
mv C:/Users/runneradmin/AppData/Roaming/luarocks/lib/lua/5.4 C:/Users/runneradmin/AppData/Roaming/luarocks/lib/lua/5.1
- name: Pack and create manifest
run: |
luarocks pack tree-sitter-haskell
luarocks-admin make-manifest --lua-version=5.4 .
dir
mv manifest-5.4 manifest-5.1
type manifest-5.1