File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -58,21 +58,19 @@ jobs:
58
58
run : |
59
59
set -eu -o pipefail
60
60
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;
67
64
fi
68
65
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"
71
69
echo "RUNNER_OS = $RUNNER_OS"
72
- $BASE /bin/nvim --version
70
+ "$NVIM_NAME /bin/nvim" --version
73
71
74
72
# update $PATH for later steps
75
- echo "$(pwd)/$BASE /bin" >> $GITHUB_PATH
73
+ echo "$(pwd)/$NVIM_NAME /bin" >> " $GITHUB_PATH"
76
74
77
75
- name : install neovim (Windows)
78
76
if : runner.os == 'Windows'
You can’t perform that action at this time.
0 commit comments