Skip to content

Commit

Permalink
feat: add tree-sitter parsers for linux
Browse files Browse the repository at this point in the history
- only ones that don't need their sources generated for now
  • Loading branch information
mrcjkb committed Mar 13, 2024
1 parent 710973f commit bb51ad3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-linux-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,28 @@ jobs:
run: |
luarocks --verbose --local --lua-version=5.1 install fzy
luarocks --verbose pack fzy
- name: Install `luarocks-build-tree-sitter-parser` Package
run: |
luarocks --verbose --local --lua-version=5.1 install luarocks-build-rust-mlua
- name: Install `luarocks-build-tree-sitter-parser` Package
run: |
luarocks --verbose --local --lua-version=5.1 install luarocks-build-rust-mlua
- name: Get tree-sitter-parsers.json
uses: actions/checkout@v4
with:
repository: nvim-neorocks/nurr
sparse-checkout: |
tree-sitter-parsers.json
path: nurr
- name: Install tree-sitter parsers
run: |
# Filter out parsers that need their sources generated
# We might want to consider adding those too
langs=$(jq -r '.parsers[] | select((.install_info.requires_generate_from_grammar // false) == false) | .lang' nurr/tree-sitter-parsers.json)
for lang in $langs; do
luarocks --local --lua-version=5.1 install "tree-sitter-$lang" \
&& luarocks pack "tree-sitter-$lang"
done
- name: Regenerate Manifests and HTML
run: luarocks-admin make-manifest --lua-version=5.1 .
- name: commit-linux-x86_64
Expand Down

0 comments on commit bb51ad3

Please sign in to comment.