Skip to content

Commit

Permalink
fix: try to set proper ABI version from Neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed May 28, 2024
1 parent 1ad3e77 commit f190694
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-linux-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/build-macosx-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/build-macosx-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f190694

Please sign in to comment.