Skip to content

Commit e95c9ec

Browse files
author
Achille Roussel
committed
split workflow steps
1 parent fa7343c commit e95c9ec

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,39 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414

15-
- name: Setup
15+
- name: Setup Go
1616
uses: actions/setup-go@v2
1717
with:
1818
go-version: 1.17
1919

20-
- name: Cache
20+
- name: Cache Dependencies
2121
id: cache
2222
uses: actions/cache@v2
2323
with:
2424
path: vendor
2525
key: deps
2626

27-
- name: Vendor
27+
- name: Vendor Dependencies
2828
if: steps.cache.outputs.cache-hit != 'true'
2929
run: go mod vendor
3030

31-
- name: Build
32-
run: |
33-
go mod vendor
34-
GOOS=linux GOARCH=amd64 go build -o kubectl-curl_linux_amd64
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
31+
- name: Build Linux AMD64
32+
run: GOOS=linux GOARCH=amd64 go build -o kubectl-curl_linux_amd64
33+
34+
- name: Build Linux ARM64
35+
run: GOOS=linux GOARCH=arm64 go build -o kubectl-curl_linux_arm64
36+
37+
- name: Build Darwin AMD64
38+
run: GOOS=darwin GOARCH=amd64 go build -o kubectl-curl_darwin_amd64
39+
40+
- name: Build Darwin ARM64
41+
run: GOOS=darwin GOARCH=arm64 go build -o kubectl-curl_darwin_arm64
42+
43+
- name: Build Windows AMD64
44+
run: GOOS=windows GOARCH=amd64 go build -o kubectl-curl_windows_amd64.exe
45+
46+
- name: Build WIndows ARM64
47+
run: GOOS=windows GOARCH=arm64 go build -o kubectl-curl_windows_arm64.exe
4048

4149
- name: Release
4250
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)