Add treesitter CLI in CI with Windows and mac

This commit is contained in:
Kiyoon Kim 2023-02-14 17:16:33 +00:00 committed by Stephan Seitz
parent 73559e3793
commit b44871afb5
3 changed files with 9 additions and 7 deletions

View file

@ -24,8 +24,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-2022, macos-latest]
cc: [ gcc, clang ]
nvim_tag: [ stable ]
cc: [gcc, clang]
nvim_tag: [stable]
exclude:
- os: ubuntu-latest
cc: clang
@ -59,10 +59,12 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/setup-node@v3
- name: Install tree-sitter CLI
run: npm i -g tree-sitter-cli
- name: Install and prepare Neovim
env:
NVIM_TAG: ${{ matrix.nvim_tag }}
TREE_SITTER_CLI_TAG: v0.20.6
run: |
bash ./scripts/ci-install-${{ matrix.os }}.sh

View file

@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
cc: [ gcc ]
cc: [gcc]
name: Run tests
runs-on: ${{ matrix.os }}
@ -30,6 +30,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install tree-sitter CLI
run: npm i -g tree-sitter-cli
- name: Test Dependencies
run: |
mkdir -p ~/.local/share/nvim/site/pack/plenary.nvim/start

View file

@ -1,6 +1,3 @@
wget -O - https://github.com/tree-sitter/tree-sitter/releases/download/${TREE_SITTER_CLI_TAG}/tree-sitter-linux-x64.gz | gunzip -c > tree-sitter
sudo cp ./tree-sitter /usr/bin/tree-sitter
sudo chmod uog+rwx /usr/bin/tree-sitter
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-linux64.tar.gz
tar -zxf nvim-linux64.tar.gz
sudo ln -s $(pwd)/nvim-linux64/bin/nvim /usr/local/bin