Skip to content

Commit 417a881

Browse files
committed
feat: caching go dependencies & build caches to speed up workflows
Signed-off-by: Daniel Hu <[email protected]>
1 parent d4ee86b commit 417a881

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pr-builder.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
uses: actions/setup-go@v2
1515
with:
1616
go-version: 1.17
17+
- uses: actions/cache@v2
18+
with:
19+
path: |
20+
~/.cache/go-build
21+
~/go/pkg/mod
22+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
23+
restore-keys: |
24+
${{ runner.os }}-go-
1725
- name: Build
1826
run: make build
1927
- name: Test

0 commit comments

Comments
 (0)