Skip to content

Commit 2433ef3

Browse files
committed
Add caching
1 parent ec1475b commit 2433ef3

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ jobs:
1010
release:
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Cache Go modules
14+
uses: actions/cache@v4
15+
with:
16+
path: |
17+
~/.cache/go-build
18+
~/go/pkg/mod
19+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
20+
restore-keys: |
21+
${{ runner.os }}-go-
1322
- name: Checkout code
1423
uses: actions/checkout@v5
1524

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Cache Go modules
13+
uses: actions/cache@v4
14+
with:
15+
path: |
16+
~/.cache/go-build
17+
~/go/pkg/mod
18+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
19+
restore-keys: |
20+
${{ runner.os }}-go-
1221
- name: Checkout code
1322
uses: actions/checkout@v5
1423

0 commit comments

Comments
 (0)