ci(install): adapt to new Neovim release artefact names

Old name can be removed after 0.10.4 release
This commit is contained in:
Christian Clason
2025-01-27 17:06:36 +01:00
committed by Christian Clason
parent 61a385d74f
commit 2206739829

View File

@@ -3,7 +3,14 @@
set -e
os=$(uname -s)
if [[ $os == Linux ]]; then
if [[ $os == Linux ]] && [[ ${NVIM_TAG} == nightly ]]; then
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-linux-x86_64.tar.gz
tar -zxf nvim-linux-x86_64.tar.gz
sudo ln -s "$PWD"/nvim-linux-x86_64/bin/nvim /usr/local/bin
rm -rf "$PWD"/nvim-linux-x86_64/lib/nvim/parser
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
ln -s "$PWD" ~/.local/share/nvim/site/pack/nvim-treesitter/start
elif [[ $os == Linux ]]; then
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