From cabdff409d994cdcabde7b6b82009edb3f4ba403 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Wed, 13 Mar 2024 21:17:26 +0100 Subject: [PATCH] feat(linux): install dev tree-sitter-parser if release not found --- .github/workflows/build-linux-x86_64.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-linux-x86_64.yml b/.github/workflows/build-linux-x86_64.yml index 9a5ab24eb..94b892823 100644 --- a/.github/workflows/build-linux-x86_64.yml +++ b/.github/workflows/build-linux-x86_64.yml @@ -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 .