mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -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
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-2022, macos-latest]
|
os: [ubuntu-latest, windows-2022, macos-latest]
|
||||||
cc: [ gcc, clang ]
|
cc: [gcc, clang]
|
||||||
nvim_tag: [ stable ]
|
nvim_tag: [stable]
|
||||||
exclude:
|
exclude:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
cc: clang
|
cc: clang
|
||||||
|
|
@ -59,10 +59,12 @@ jobs:
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
|
|
||||||
|
- name: Install tree-sitter CLI
|
||||||
|
run: npm i -g tree-sitter-cli
|
||||||
|
|
||||||
- name: Install and prepare Neovim
|
- name: Install and prepare Neovim
|
||||||
env:
|
env:
|
||||||
NVIM_TAG: ${{ matrix.nvim_tag }}
|
NVIM_TAG: ${{ matrix.nvim_tag }}
|
||||||
TREE_SITTER_CLI_TAG: v0.20.6
|
|
||||||
run: |
|
run: |
|
||||||
bash ./scripts/ci-install-${{ matrix.os }}.sh
|
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
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
cc: [ gcc ]
|
cc: [gcc]
|
||||||
|
|
||||||
name: Run tests
|
name: Run tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
@ -30,6 +30,9 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
|
|
||||||
|
- name: Install tree-sitter CLI
|
||||||
|
run: npm i -g tree-sitter-cli
|
||||||
|
|
||||||
- name: Test Dependencies
|
- name: Test Dependencies
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.local/share/nvim/site/pack/plenary.nvim/start
|
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
|
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-linux64.tar.gz
|
||||||
tar -zxf nvim-linux64.tar.gz
|
tar -zxf nvim-linux64.tar.gz
|
||||||
sudo ln -s $(pwd)/nvim-linux64/bin/nvim /usr/local/bin
|
sudo ln -s $(pwd)/nvim-linux64/bin/nvim /usr/local/bin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue