@@ -41,27 +41,12 @@ jobs:
4141 include :
4242 - os : ' ubuntu-20.04'
4343 python-version : ' 3.7'
44- NIGHTLY : nvim-linux64.tar.gz
45- NVIM_BIN_PATH : nvim-linux64/bin
46- EXTRACT : tar xzf
47- - os : ' ubuntu-latest'
48- NIGHTLY : nvim-linux64.tar.gz
49- NVIM_BIN_PATH : nvim-linux64/bin
50- EXTRACT : tar xzf
5144 - os : ' macos-12'
5245 python-version : ' 3.7'
5346 - os : ' macos-12'
5447 python-version : ' 3.8'
5548 - os : ' macos-12'
5649 python-version : ' 3.9'
57- - os : ' macos-latest'
58- NIGHTLY : nvim-macos-x86_64.tar.gz
59- NVIM_BIN_PATH : nvim-macos-x86_64/bin
60- EXTRACT : tar xzf
61- - os : ' windows-latest'
62- NIGHTLY : nvim-win64.zip
63- NVIM_BIN_PATH : nvim-win64/bin
64- EXTRACT : unzip
6550
6651 name : " test (python ${{ matrix.python-version }}, ${{ matrix.os }})"
6752 runs-on : ${{ matrix.os }}
@@ -72,19 +57,35 @@ jobs:
7257 cache : ' pip'
7358 python-version : ${{ matrix.python-version }}
7459
75- - name : update path (bash)
76- if : runner.os != 'Windows'
77- run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" >> $GITHUB_PATH
60+ - name : update path (Linux)
61+ if : runner.os == 'Linux'
62+ run : echo "$(pwd)/nvim-linux64/bin" >> $GITHUB_PATH
63+
64+ - name : update path (macOS)
65+ if : runner.os == 'macOS'
66+ run : echo "$(pwd)/nvim-macos-x86_64/bin" >> $GITHUB_PATH
7867
79- - name : update path (windows )
68+ - name : update path (Windows )
8069 if : runner.os == 'Windows'
81- run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }} " | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
70+ run : echo "$(pwd)/nvim-win64/bin " | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
8271
8372 - name : install neovim
8473 run : |
85- curl -LO 'https://github.com/neovim/neovim/releases/download/nightly/${{ matrix.NIGHTLY }}'
86- ${{ matrix.EXTRACT }} ${{ matrix.NIGHTLY }}
87- echo '${{ runner.os }}'
74+ set -eu -o pipefail
75+
76+ if [[ "$RUNNER_OS" == "Linux" ]]; then
77+ EXTRACT="tar xzf"; NIGHTLY="nvim-linux64.tar.gz";
78+ elif [[ "$RUNNER_OS" == "macOS" ]]; then
79+ EXTRACT="tar xzf"; NIGHTLY="nvim-macos-x86_64.tar.gz";
80+ elif [[ "$RUNNER_OS" == "Windows" ]]; then
81+ EXTRACT="unzip"; NIGHTLY="nvim-win64.zip";
82+ else
83+ echo "$RUNNER_OS not supported"; exit 1;
84+ fi
85+
86+ curl -LO "https://github.com/neovim/neovim/releases/download/nightly/$NIGHTLY"
87+ $EXTRACT $NIGHTLY
88+ echo "RUNNER_OS = $RUNNER_OS"
8889 nvim --version
8990
9091 - name : install dependencies
0 commit comments