Skip to content

Commit fae7247

Browse files
committed
ci: update nvim install script for new appimage name
1 parent 390332d commit fae7247

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/install_nvim.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#!/bin/bash
22
set -e
3-
PLUGINS="$HOME/.local/share/nvim/site/pack/plugins/start"
4-
mkdir -p "$PLUGINS"
5-
6-
wget "https://github.com/neovim/neovim/releases/download/${NVIM_TAG-stable}/nvim.appimage"
3+
version="${NVIM_TAG-stable}"
4+
dl_name="nvim-linux-x86_64.appimage"
5+
# The appimage name changed in v0.10.4
6+
if python -c 'from packaging.version import Version; import sys; sys.exit(not (Version(sys.argv[1]) < Version("v0.10.4")))' "$version" 2>/dev/null; then
7+
dl_name="nvim.appimage"
8+
fi
9+
curl -sL "https://github.com/neovim/neovim/releases/download/${version}/${dl_name}" -o nvim.appimage
710
chmod +x nvim.appimage
811
./nvim.appimage --appimage-extract >/dev/null
912
rm -f nvim.appimage
1013
mkdir -p ~/.local/share/nvim
1114
mv squashfs-root ~/.local/share/nvim/appimage
1215
sudo ln -s "$HOME/.local/share/nvim/appimage/AppRun" /usr/bin/nvim
16+
/usr/bin/nvim --version

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
- v0.8.3
5555
- v0.9.4
5656
- v0.10.0
57+
- v0.10.4
5758

5859
name: Run tests
5960
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)