Skip to content

Commit 60a3a36

Browse files
authored
cI: use built-in go cache
1 parent edc018a commit 60a3a36

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/ci.yaml

+3-15
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,9 @@ jobs:
2929
steps:
3030
- name: Checkout
3131
uses: actions/checkout@v4
32-
33-
- name: Echo Go Cache Paths
34-
id: go-cache-paths
35-
run: |
36-
echo "GOCACHE=$(go env GOCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT
37-
echo "GOMODCACHE=$(go env GOMODCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT
38-
39-
- name: Go Build Cache
40-
uses: actions/cache@v3
41-
with:
42-
path: ${{ steps.go-cache-paths.outputs.GOCACHE }}
43-
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }}
44-
45-
# Install Go!
46-
- uses: actions/setup-go@v5
32+
33+
- name: Setup go
34+
uses: actions/setup-go@v5
4735
with:
4836
go-version: "~1.22"
4937

0 commit comments

Comments
 (0)