Skip to content

Commit 581d7a8

Browse files
authored
ci: neovim nightly name was changed #590
see neovim/neovim#32194
1 parent e2a3ead commit 581d7a8

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/test.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,19 @@ jobs:
5858
run: |
5959
set -eu -o pipefail
6060
61-
if [[ "$RUNNER_OS" == "Linux" ]]; then
62-
BASE="nvim-linux64"
63-
elif [[ "$RUNNER_OS" == "macOS" ]]; then
64-
BASE="nvim-macos-x86_64"
65-
else
66-
echo "$RUNNER_OS not supported"; exit 1;
61+
NVIM_OS="$(echo "$RUNNER_OS" | tr '[:upper:]' '[:lower:]')"
62+
if ! [ "$NVIM_OS" = "linux" ] && ! [ "$NVIM_OS" = "macos" ]; then
63+
echo "RUNNER_OS=${RUNNER_OS} not supported"; exit 1;
6764
fi
6865
69-
curl -LO "https://github.com/neovim/neovim/releases/download/${{ matrix.config.neovim-version || 'nightly' }}/${BASE}.tar.gz"
70-
tar xzf "${BASE}.tar.gz"
66+
NVIM_NAME="nvim-${NVIM_OS}-x86_64"
67+
curl -LO "https://github.com/neovim/neovim/releases/download/${{ matrix.config.neovim-version || 'nightly' }}/${NVIM_NAME}.tar.gz"
68+
tar xzf "${NVIM_NAME}.tar.gz"
7169
echo "RUNNER_OS = $RUNNER_OS"
72-
$BASE/bin/nvim --version
70+
"$NVIM_NAME/bin/nvim" --version
7371
7472
# update $PATH for later steps
75-
echo "$(pwd)/$BASE/bin" >> $GITHUB_PATH
73+
echo "$(pwd)/$NVIM_NAME/bin" >> "$GITHUB_PATH"
7674
7775
- name: install neovim (Windows)
7876
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)