Skip to content

Commit bbdb4b1

Browse files
committed
github/workflows: use actions/cache
1 parent 9afa79c commit bbdb4b1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ jobs:
4040
with:
4141
fetch-depth: 2
4242

43+
- uses: actions/cache@v2
44+
with:
45+
path: |
46+
~/go/pkg/mod # Module download cache
47+
~/.cache/go-build # Build cache (Linux)
48+
~/Library/Caches/go-build # Build cache (Mac)
49+
'%LocalAppData%\go-build' # Build cache (Windows)
50+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
51+
restore-keys: |
52+
${{ runner.os }}-go-
53+
4354
- name: Install nvim binary
4455
uses: rhysd/action-setup-vim@v1
4556
with:

0 commit comments

Comments
 (0)