diff --git a/.github/workflows/build-linux-x86_64.yml b/.github/workflows/build-linux-x86_64.yml index 316d2168d..f30cb45da 100644 --- a/.github/workflows/build-linux-x86_64.yml +++ b/.github/workflows/build-linux-x86_64.yml @@ -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