We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a07017 commit 49f9556Copy full SHA for 49f9556
.github/workflows/ci.yaml
@@ -34,6 +34,18 @@ jobs:
34
- 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') }}
48
49
# Install Go!
50
- uses: actions/setup-go@v3
51
with:
0 commit comments