From f190694f7e8b571002bc626be57d1e5a03707ffc Mon Sep 17 00:00:00 2001 From: Vhyrro Date: Tue, 28 May 2024 19:18:35 +0200 Subject: [PATCH] fix: try to set proper ABI version from Neovim --- .github/workflows/build-linux-x86_64.yml | 9 +++++++++ .github/workflows/build-macosx-aarch64.yml | 9 +++++++++ .github/workflows/build-macosx-x86_64.yml | 9 +++++++++ 3 files changed, 27 insertions(+) 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