2929 - 1.15.x
3030 - 1.16.x
3131 - 1.17.x
32+ neovim-version :
33+ - v0.5.1
34+ - nightly
3235 fail-fast : false
3336
3437 runs-on : ${{ matrix.os }}
@@ -52,19 +55,52 @@ jobs:
5255 with :
5356 key : go-${{ env.OS }}-${{ hashFiles('**/go.mod') }}
5457 path : |
55- ~/go/pkg/mod # Module download cache
56- ~/.cache/go-build # Build cache (Linux)
57- ~/Library/Caches/go-build # Build cache (Mac)
58- '%LocalAppData%\go-build' # Build cache (Windows)
58+ ~/go/pkg/mod
59+ ~/.cache/go-build
60+ ~/Library/Caches/go-build
61+ '%LocalAppData%\go-build'
5962 restore-keys : |
6063 go-${{ env.OS }}-
6164
62- - name : Install nvim binary
65+ - name : Cache neovim binary (linux)
66+ id : cache-nvim-linux
67+ uses : actions/cache@v2
68+ if : ${{ env.OS == 'linux' && matrix.neovim-version != 'nightly' }}
69+ with :
70+ key : nvim-${{ env.OS }}-${{ matrix.neovim-version }}-no2f8ibgdwqj
71+ path : |
72+ /home/runner/nvim-${{ matrix.neovim-version }}
73+ restore-keys : |
74+ nvim-${{ env.OS }}-${{ matrix.neovim-version }}
75+
76+ - name : Cache neovim binary (macOS)
77+ id : cache-nvim-macos
78+ uses : actions/cache@v2
79+ if : ${{ env.OS == 'macos' && matrix.neovim-version != 'nightly' }}
80+ with :
81+ key : nvim-${{ env.OS }}-${{ matrix.neovim-version }}-no2f8ibgdwqj
82+ path : |
83+ /Users/runner/nvim-${{ matrix.neovim-version }}
84+ restore-keys : |
85+ nvim-${{ env.OS }}-${{ matrix.neovim-version }}
86+
87+ - name : Cache neovim binary (Windows)
88+ id : cache-nvim-windows
89+ uses : actions/cache@v2
90+ if : ${{ env.OS == 'windows' && matrix.neovim-version != 'nightly' }}
91+ with :
92+ key : nvim-${{ env.OS }}-${{ matrix.neovim-version }}-no2f8ibgdwqj
93+ path : |
94+ C:\Users\runneradmin\nvim-${{ matrix.neovim-version }}
95+ restore-keys : |
96+ nvim-${{ env.OS }}-${{ matrix.neovim-version }}
97+
98+ - name : Install neovim binary
6399 uses : rhysd/action-setup-vim@v1
64- if : steps.cache-nvim.outputs.cache-hit != 'true' || steps.cache-nvim-windows.outputs.cache-hit != 'true'
100+ if : steps.cache-nvim-linux.outputs.cache-hit != 'true' || steps.cache-nvim-macos .outputs.cache-hit != 'true' || steps.cache-nvim-windows.outputs.cache-hit != 'true'
65101 with :
66102 neovim : true
67- version : nightly
103+ version : ${{ matrix.neovim-version }}
68104
69105 - name : gofmt
70106 if : ${{ env.OS != 'windows' }}
0 commit comments