Skip to content

Commit 8cf9e67

Browse files
authored
feat: rocks.nvim/luarocks support (#710)
* feat: rocks.nvim/luarocks support * ci: specify latest tree-sitter-orgmode dependency
1 parent edbcbfb commit 8cf9e67

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/luarocks.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Push to Luarocks
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
release:
8+
types:
9+
- created
10+
pull_request: # Runs test install without uploading
11+
workflow_dispatch: # Allows to trigger manually
12+
13+
jobs:
14+
luarocks-upload:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # Required to count the commits
20+
- name: Get Version
21+
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
35+
- name: LuaRocks Upload
36+
uses: nvim-neorocks/luarocks-tag-release@v5
37+
env:
38+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
39+
with:
40+
version: ${{ env.LUAROCKS_VERSION }}
41+
dependencies: |
42+
tree-sitter-orgmode ~> 1

0 commit comments

Comments
 (0)