diff --git a/.github/workflows/build-linux-x86_64.yml b/.github/workflows/build-linux-x86_64.yml index 90dc8f8de..eee61c4ec 100644 --- a/.github/workflows/build-linux-x86_64.yml +++ b/.github/workflows/build-linux-x86_64.yml @@ -32,6 +32,15 @@ jobs: luaVersion: "5.1" - name: Install Luarocks uses: hishamhm/gh-actions-luarocks@master + - uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: stable + - name: Get tree-sitter ABI version + run: | + # NOTE: Neovim prints output to stderr + ABI_VERSION="$(nvim -u NORC -c 'lua print(vim.treesitter.language_version)' --headless +q 2>&1)" + echo "TREE_SITTER_LANGUAGE_VERSION=$ABI_VERSION" >> $GITHUB_ENV - name: Print environment run: | printenv diff --git a/.github/workflows/build-macosx-aarch64.yml b/.github/workflows/build-macosx-aarch64.yml index f6fa28e27..20241e3d2 100644 --- a/.github/workflows/build-macosx-aarch64.yml +++ b/.github/workflows/build-macosx-aarch64.yml @@ -38,6 +38,15 @@ jobs: luaVersion: "5.1" - name: Install Luarocks uses: hishamhm/gh-actions-luarocks@master + - uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: stable + - name: Get tree-sitter ABI version + run: | + # NOTE: Neovim prints output to stderr + ABI_VERSION="$(nvim -u NORC -c 'lua print(vim.treesitter.language_version)' --headless +q 2>&1)" + echo "TREE_SITTER_LANGUAGE_VERSION=$ABI_VERSION" >> $GITHUB_ENV - name: Print environment run: | printenv diff --git a/.github/workflows/build-macosx-x86_64.yml b/.github/workflows/build-macosx-x86_64.yml index 2727d7b44..cc37a82b8 100644 --- a/.github/workflows/build-macosx-x86_64.yml +++ b/.github/workflows/build-macosx-x86_64.yml @@ -38,6 +38,15 @@ jobs: luaVersion: "5.1" - name: Install Luarocks uses: hishamhm/gh-actions-luarocks@master + - uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: stable + - name: Get tree-sitter ABI version + run: | + # NOTE: Neovim prints output to stderr + ABI_VERSION="$(nvim -u NORC -c 'lua print(vim.treesitter.language_version)' --headless +q 2>&1)" + echo "TREE_SITTER_LANGUAGE_VERSION=$ABI_VERSION" >> $GITHUB_ENV - name: Print environment run: | printenv