File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*"
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v2
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v2
17+ with :
18+ go-version : 1.17.1
19+
20+ - name : Cache Dependencies
21+ uses : actions/cache@v2
22+ with :
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
33+
34+ - name : Build Linux AMD64
35+ run : GOOS=linux GOARCH=amd64 go build -o kubectl-curl_linux_amd64
36+
37+ - name : Build Linux ARM64
38+ run : GOOS=linux GOARCH=arm64 go build -o kubectl-curl_linux_arm64
39+
40+ - name : Build Darwin AMD64
41+ run : GOOS=darwin GOARCH=amd64 go build -o kubectl-curl_darwin_amd64
42+
43+ - name : Build Darwin ARM64
44+ run : GOOS=darwin GOARCH=arm64 go build -o kubectl-curl_darwin_arm64
45+
46+ - name : Build Windows AMD64
47+ run : GOOS=windows GOARCH=amd64 go build -o kubectl-curl_windows_amd64.exe
48+
49+ - name : Build Windows ARM64
50+ run : GOOS=windows GOARCH=arm64 go build -o kubectl-curl_windows_arm64.exe
51+
52+ - name : Release
53+ uses : softprops/action-gh-release@v1
54+ with :
55+ files : |
56+ LICENSE
57+ kubectl-curl_linux_amd64
58+ kubectl-curl_linux_arm64
59+ kubectl-curl_darwin_amd64
60+ kubectl-curl_darwin_arm64
61+ kubectl-curl_windows_amd64.exe
62+ kubectl-curl_windows_arm64.exe
You can’t perform that action at this time.
0 commit comments