Skip to content

Commit 4adea82

Browse files
authored
ci: use setup-go builtin cache (#176)
1 parent 5d0a0f3 commit 4adea82

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/ci.yaml

+2-14
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,9 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v3
36-
37-
- name: Echo Go Cache Paths
38-
id: go-cache-paths
39-
run: |
40-
echo "GOCACHE=$(go env GOCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT
41-
echo "GOMODCACHE=$(go env GOMODCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT
42-
43-
- name: Go Build Cache
44-
uses: actions/cache@v3
45-
with:
46-
path: ${{ steps.go-cache-paths.outputs.GOCACHE }}
47-
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }}
35+
uses: actions/checkout@v4
4836

49-
- uses: actions/setup-go@v3
37+
- uses: actions/setup-go@v5
5038
with:
5139
go-version: "~1.21"
5240

0 commit comments

Comments
 (0)