mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Add treesitter CLI in CI with Windows and mac
This commit is contained in:
parent
73559e3793
commit
b44871afb5
3 changed files with 9 additions and 7 deletions
8
.github/workflows/test-queries.yml
vendored
8
.github/workflows/test-queries.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue