mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
ci: use nvim v0.5.1 on CI
This commit is contained in:
parent
24edc5d93f
commit
7135321cc2
6 changed files with 22 additions and 16 deletions
|
|
@ -30,6 +30,9 @@ jobs:
|
|||
- uses: actions/setup-node@v2
|
||||
|
||||
- name: Install and prepare Neovim
|
||||
env:
|
||||
NVIM_TAG: v0.5.1
|
||||
TREE_SITTER_CLI_TAG: v0.20.0
|
||||
run: |
|
||||
bash ./scripts/ci-install-${{ matrix.os }}.sh
|
||||
|
||||
|
|
@ -38,16 +41,10 @@ jobs:
|
|||
run: |
|
||||
nvim --headless -c "TSInstallSync all" -c "q"
|
||||
|
||||
- name: Check query files (Unix)
|
||||
if: matrix.os != 'windows-latest'
|
||||
env:
|
||||
ALLOWED_INSTALLATION_FAILURES: haskell
|
||||
run: nvim --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
||||
|
||||
- name: Compile parsers Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: |
|
||||
C:\\tools\\neovim\\Neovim\\bin\\nvim.exe --headless -c "TSInstallSync all" -c "q"
|
||||
Neovim\\bin\\nvim.exe --headless -c "TSInstallSync all" -c "q"
|
||||
|
||||
- name: Post compile Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
|
|
@ -59,9 +56,14 @@ jobs:
|
|||
name: parsers-${{ matrix.os }}-${{ matrix.cc }}-x86_64
|
||||
path: parser/*
|
||||
|
||||
- name: Check query files (Unix)
|
||||
if: matrix.os != 'windows-latest'
|
||||
env:
|
||||
ALLOWED_INSTALLATION_FAILURES: haskell
|
||||
run: nvim --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
||||
|
||||
- name: Check query files (Windows)
|
||||
if: matrix.os == 'windows-latest'
|
||||
env:
|
||||
ALLOWED_INSTALLATION_FAILURES: haskell
|
||||
run: C:\\tools\\neovim\\Neovim\\bin\\nvim.exe --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
||||
|
||||
run: Neovim\\bin\\nvim.exe --headless -c "luafile ./scripts/check-queries.lua" -c "q"
|
||||
|
|
|
|||
4
.github/workflows/update-parsers-pr.yml
vendored
4
.github/workflows/update-parsers-pr.yml
vendored
|
|
@ -15,13 +15,15 @@ jobs:
|
|||
ref: master
|
||||
|
||||
- name: Prepare
|
||||
env:
|
||||
NVIM_TAG: v0.5.1
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo add-apt-repository universe
|
||||
wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
|
||||
mv ./jq-linux64 /tmp/jq
|
||||
chmod +x /tmp/jq
|
||||
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
|
||||
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim.appimage
|
||||
chmod u+x nvim.appimage
|
||||
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
|
|
|
|||
4
.github/workflows/update-readme.yml
vendored
4
.github/workflows/update-readme.yml
vendored
|
|
@ -11,10 +11,12 @@ jobs:
|
|||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Prepare
|
||||
env:
|
||||
NVIM_TAG: v0.5.1
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo add-apt-repository universe
|
||||
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
|
||||
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim.appimage
|
||||
chmod u+x nvim.appimage
|
||||
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter/start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue