add more cache paths

This commit is contained in:
Jesse Duffield 2022-06-11 13:11:56 +10:00
parent ef36ac955d
commit 3d61893589

View file

@ -19,7 +19,9 @@ jobs:
- windows-latest
include:
- os: ubuntu-latest
cache_path: ~/.cache/go-build
path: |
~/.cache/go-build
~/go/pkg/mod
- os: windows-latest
cache_path: ~\AppData\Local\go-build
name: ci - ${{matrix.os}}
@ -66,7 +68,9 @@ jobs:
- name: Cache build
uses: actions/cache@v1
with:
path: ~/.cache/go-build
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-test
restore-keys: |
${{runner.os}}-go-
@ -88,7 +92,9 @@ jobs:
- name: Cache build
uses: actions/cache@v1
with:
path: ~/.cache/go-build
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-build
restore-keys: |
${{runner.os}}-go-
@ -116,7 +122,9 @@ jobs:
- name: Cache build
uses: actions/cache@v1
with:
path: ~/.cache/go-build
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-build
restore-keys: |
${{runner.os}}-go-
@ -137,7 +145,9 @@ jobs:
- name: Cache build
uses: actions/cache@v1
with:
path: ~/.cache/go-build
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-test
restore-keys: |
${{runner.os}}-go-