Skip to content

Commit 0cde499

Browse files
Merge pull request #13 from intercepted16/cache-compiling
perf: cache Go modules when compiling in GitHub Action
2 parents 6f8cd12 + 49374f7 commit 0cde499

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/master-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ jobs:
6161
steps:
6262
- name: Check out code
6363
uses: actions/checkout@v3
64+
- name: Cache Go Modules
65+
uses: actions/cache@v3
66+
with:
67+
path: |
68+
~/go/pkg/mod
69+
~/go/bin
70+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
71+
restore-keys: |
72+
${{ runner.os }}-go-
73+
6474
- name: Install Go
6575
uses: actions/setup-go@v4
6676
with:

0 commit comments

Comments
 (0)