File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed
Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 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 on PR 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+ name : tree-sitter-orgmode
41+ version : ${{ env.LUAROCKS_VERSION }}
42+ labels : |
43+ neovim
44+ tree-sitter
45+ summary : A fork of tree-sitter-org, for use with the orgmode Neovim plugin
46+ template : .github/workflows/tree-sitter-orgmode.rockspec.template
Original file line number Diff line number Diff line change 1+ local git_ref = '$git_ref'
2+ local modrev = '$modrev'
3+ local specrev = '$specrev'
4+
5+ local repo_url = '$repo_url'
6+
7+ rockspec_format = '3.0'
8+ package = '$package'
9+ version = modrev ..'-'.. specrev
10+
11+ description = {
12+ summary = '$summary',
13+ labels = $labels,
14+ homepage = '$homepage',
15+ $license
16+ }
17+
18+ build_dependencies = {
19+ 'luarocks-build-treesitter-parser >= 1.3.0',
20+ }
21+
22+ source = {
23+ url = repo_url .. '/archive/' .. git_ref .. '.zip',
24+ dir = '$repo_name-' .. '$archive_dir_suffix',
25+ }
26+
27+ build = {
28+ type = "treesitter-parser",
29+ lang = "org",
30+ sources = { "src/parser.c", "src/scanner.c" },
31+ copy_directories = { "queries" },
32+ }
You can’t perform that action at this time.
0 commit comments