Skip to content

Commit e435aa3

Browse files
committed
implement go packages cache
1 parent e12100a commit e435aa3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ jobs:
3838
fetch-depth: 0
3939
ref: ${{ github.ref_name }}
4040

41-
### NOT using dependency caches, since using GitHub-hosted runners. More info at the URL below:
41+
### Need to be careful with dependency caches, since using GitHub-hosted runners. More info at the URL below:
4242
### https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#about-caching-workflow-dependencies
43-
# - uses: actions/setup-go@v5
44-
# with:
45-
# go-version-file: "go.mod"
43+
- name: Cache go.mod packages
44+
uses: actions/setup-go@v5
45+
with:
46+
go-version-file: "go.mod"
4647

4748
- name: Configure AWS Credentials
4849
uses: aws-actions/configure-aws-credentials@v4

0 commit comments

Comments
 (0)