File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,21 @@ jobs:
1515 - name : Setup Go
1616 uses : actions/setup-go@v2
1717 with :
18- go-version : 1.17
18+ go-version : 1.17.1
1919
2020 - name : Cache Dependencies
21- id : cache
2221 uses : actions/cache@v2
2322 with :
24- path : vendor
25- key : deps
26-
27- - name : Vendor Dependencies
28- if : steps.cache.outputs.cache-hit != 'true'
29- run : go mod vendor
23+ path : |
24+ ~/go/pkg/mod
25+ ~/.cache/go-build
26+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27+ restore-keys : |
28+ ${{ runner.os }}-go-
29+
30+ - name : Download Dependencies
31+ if : steps.cache-deps.outputs.cache-hit != 'true'
32+ run : go mod download
3033
3134 - name : Build Linux AMD64
3235 run : GOOS=linux GOARCH=amd64 go build -o kubectl-curl_linux_amd64
You can’t perform that action at this time.
0 commit comments