chore: fix github action cache.

This commit is contained in:
Fernandez Ludovic
2021-07-17 05:58:35 +02:00
parent 9baca36b2c
commit 09cbe40f67
3 changed files with 18 additions and 10 deletions

View File

@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
go-version: [ 1.14, 1.15, 1.x ]
go-version: [ 1.15, 1.16, 1.x ]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
@ -29,11 +29,16 @@ jobs:
- name: Cache Go modules
uses: actions/cache@v2
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
~/Library/Caches/go-build # Build cache (Mac)
'%LocalAppData%\go-build' # Build cache (Windows)
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
%LocalAppData%\go-build
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ matrix.go-version }}-go-