File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,24 @@ jobs:
21
21
matrix :
22
22
include :
23
23
- os : ubuntu-20.04
24
- url : https://github.com/neovim/neovim/releases/download/v0.5.1/nvim-linux64.tar.gz
24
+ nvim-version : ' 0.10.3 '
25
25
steps :
26
26
- uses : actions/checkout@v2
27
- - run : date +%F > todays-date
27
+ - id : nvim-sha
28
+ run : |
29
+ curl -sL https://github.com/neovim/neovim/releases/download/v${{ matrix.nvim-version }}/nvim-linux64.tar.gz.sha256sum > nvim-sha
30
+ echo "cache-key=$(awk '{print $2 "-" $1}' nvim-sha)" >> "$GITHUB_OUTPUT"
28
31
- name : Restore cache for today's nightly.
29
32
uses : actions/cache@v2
30
33
with :
31
34
path : _neovim
32
- key : ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}
35
+ key : ${{ steps.nvim-sha.outputs.cache-key }}
33
36
34
37
- name : Prepare dependencies
35
38
run : |
36
39
test -d _neovim || {
37
40
mkdir -p _neovim
38
- curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
41
+ curl -sL https://github.com/neovim/neovim/releases/download/v ${{ matrix.nvim-version }}/nvim-linux64.tar.gz | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
39
42
}
40
43
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
41
44
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
You can’t perform that action at this time.
0 commit comments