Skip to content

Commit

Permalink
feat(linux): install dev tree-sitter-parser if release not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Mar 13, 2024
1 parent e48acc7 commit cabdff4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-linux-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ jobs:
# 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
rm "tree-sitter-$lang-scm-1.linux-x86_64.rock" || true
luarocks --local --lua-version=5.1 install "tree-sitter-$lang" \
&& luarocks pack "tree-sitter-$lang"
|| luarocks --local --dev --lua-version=5.1 install "tree-sitter-$lang" \
&& luarocks pack "tree-sitter-$lang" || echo "Failed to pack "tree-sitter-$lang"
done
- name: Regenerate Manifests and HTML
run: luarocks-admin make-manifest --lua-version=5.1 .
Expand Down

0 comments on commit cabdff4

Please sign in to comment.