File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,26 @@ jobs:
1717 with :
1818 go-version : 1.17
1919
20- - name : Test
20+ - name : Cache
21+ id : cache
22+ uses : actions/cache@v2
23+ with :
24+ path : vendor
25+ key : deps
26+
27+ - name : Vendor
28+ if : steps.cache.outputs.cache-hit != 'true'
29+ run : go mod vendor
30+
31+ - name : Build
2132 run : |
2233 go mod vendor
2334 GOOS=linux GOARCH=amd64 go build -o kubectl-curl_linux_amd64
24- GOOS=linux GOARCH=arm64 go build -o kubectl-curl_linux_arm64
25- GOOS=darwin GOARCH=amd64 go build -o kubectl-curl_darwin_amd64
26- GOOS=darwin GOARCH=arm64 go build -o kubectl-curl_darwin_arm64
27- GOOS=windows GOARCH=amd64 go build -o kubectl-curl_windows_amd64.exe
28- GOOS=windows GOARCH=arm64 go build -o kubectl-curl_windows_arm64.exe
35+ # GOOS=linux GOARCH=arm64 go build -o kubectl-curl_linux_arm64
36+ # GOOS=darwin GOARCH=amd64 go build -o kubectl-curl_darwin_amd64
37+ # GOOS=darwin GOARCH=arm64 go build -o kubectl-curl_darwin_arm64
38+ # GOOS=windows GOARCH=amd64 go build -o kubectl-curl_windows_amd64.exe
39+ # GOOS=windows GOARCH=arm64 go build -o kubectl-curl_windows_arm64.exe
2940
3041 - name : Release
3142 uses : softprops/action-gh-release@v1
You can’t perform that action at this time.
0 commit comments