Skip to content

Commit f608f4b

Browse files
authored
ci: fix luarocks.yml (#1)
1 parent c6a9c28 commit f608f4b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/luarocks.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
release:
88
types:
99
- created
10-
pull_request: # Runs test install without uploading
10+
pull_request: # Runs test install on PR without uploading
1111
workflow_dispatch: # Allows to trigger manually
1212

1313
jobs:
@@ -19,11 +19,25 @@ jobs:
1919
fetch-depth: 0 # Required to count the commits
2020
- name: Get Version
2121
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
22+
- name: Install C/C++ Compiler
23+
uses: rlalik/setup-cpp-compiler@master
24+
with:
25+
compiler: clang-latest
26+
- name: Install Lua
27+
uses: leso-kn/gh-actions-lua@master
28+
with:
29+
luaVersion: "5.1"
30+
- name: Install Luarocks
31+
uses: hishamhm/gh-actions-luarocks@master
32+
- name: Install `luarocks-build-treesitter-parser` Package
33+
run: |
34+
luarocks --verbose --local --lua-version=5.1 install luarocks-build-treesitter-parser
2235
- name: LuaRocks Upload
2336
uses: nvim-neorocks/luarocks-tag-release@v5
2437
env:
2538
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
2639
with:
40+
name: tree-sitter-orgmode
2741
version: ${{ env.LUAROCKS_VERSION }}
2842
labels: |
2943
neovim

0 commit comments

Comments
 (0)