@@ -41,27 +41,12 @@ jobs:
41
41
include :
42
42
- os : ' ubuntu-20.04'
43
43
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
51
44
- os : ' macos-12'
52
45
python-version : ' 3.7'
53
46
- os : ' macos-12'
54
47
python-version : ' 3.8'
55
48
- os : ' macos-12'
56
49
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
65
50
66
51
name : " test (python ${{ matrix.python-version }}, ${{ matrix.os }})"
67
52
runs-on : ${{ matrix.os }}
@@ -72,20 +57,36 @@ jobs:
72
57
cache : ' pip'
73
58
python-version : ${{ matrix.python-version }}
74
59
75
- - name : update path (bash )
60
+ - name : install neovim (Linux/macOS )
76
61
if : runner.os != 'Windows'
77
- run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" >> $GITHUB_PATH
62
+ run : |
63
+ set -eu -o pipefail
78
64
79
- - name : update path (windows)
80
- if : runner.os == 'Windows'
81
- run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
65
+ if [[ "$RUNNER_OS" == "Linux" ]]; then
66
+ BASE="nvim-linux64"
67
+ elif [[ "$RUNNER_OS" == "macOS" ]]; then
68
+ BASE="nvim-macos-x86_64"
69
+ else
70
+ echo "$RUNNER_OS not supported"; exit 1;
71
+ fi
82
72
83
- - name : install neovim
73
+ curl -LO "https://github.com/neovim/neovim/releases/download/nightly/${BASE}.tar.gz"
74
+ tar xvf "${BASE}.tar.gz"
75
+ echo "RUNNER_OS = $RUNNER_OS"
76
+ $BASE/bin/nvim --version
77
+
78
+ # update $PATH for later steps
79
+ echo "$(pwd)/$BASE/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
80
+
81
+ - name : install neovim (Windows)
82
+ if : runner.os == 'Windows'
84
83
run : |
85
- curl -LO 'https://github.com/neovim/neovim/releases/download/nightly/${{ matrix.NIGHTLY }}'
86
- ${{ matrix.EXTRACT }} ${{ matrix.NIGHTLY }}
87
- echo '${{ runner.os }}'
88
- nvim --version
84
+ curl -LO "https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip"
85
+ unzip nvim-win64.zip
86
+ nvim-win64/bi/nvim --version
87
+
88
+ # update $PATH for later steps
89
+ echo "$(pwd)/nvim-win64/bin" >> $GITHUB_PATH
89
90
90
91
- name : install dependencies
91
92
run : |
0 commit comments