29
29
- 1.15.x
30
30
- 1.16.x
31
31
- 1.17.x
32
+ neovim-version :
33
+ - v0.5.1
34
+ - nightly
32
35
fail-fast : false
33
36
34
37
runs-on : ${{ matrix.os }}
@@ -52,19 +55,52 @@ jobs:
52
55
with :
53
56
key : go-${{ env.OS }}-${{ hashFiles('**/go.mod') }}
54
57
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'
59
62
restore-keys : |
60
63
go-${{ env.OS }}-
61
64
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
63
99
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'
65
101
with :
66
102
neovim : true
67
- version : nightly
103
+ version : ${{ matrix.neovim-version }}
68
104
69
105
- name : gofmt
70
106
if : ${{ env.OS != 'windows' }}
0 commit comments