File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ pipeline:
77 image : ghcr.io/ldproxy/golang-jdk:1.2
88 commands :
99 - cd xtractl
10- - GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o dist/linux-amd64/xtractl
11- - GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o dist/linux-arm64/xtractl
10+ - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o dist/linux-amd64/xtractl
11+ - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o dist/linux-arm64/xtractl
1212
1313 upx :
1414 image : harshavardhanj/upx:3.95
Original file line number Diff line number Diff line change @@ -10,21 +10,17 @@ pipeline:
1010 - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o dist/linux-amd64/xtractl
1111 - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o dist/linux-arm64/xtractl
1212
13- # upx:
14- # image: harshavardhanj/upx:3.95
15- # commands:
16- # - upx --best xtractl/dist/linux-amd64/xtractl
17- # - upx --best xtractl/dist/linux-arm64/xtractl
13+ upx :
14+ image : harshavardhanj/upx:3.95
15+ commands :
16+ - upx --best xtractl/dist/linux-amd64/xtractl
17+ - upx --best xtractl/dist/linux-arm64/xtractl
1818
1919 github :
2020 image : meltwaterfoundation/github-cli:2.29.0
2121 commands :
22- # - apk update && apk add upx
23- # - upx --best xtractl/dist/linux-amd64/xtractl
24- # - upx --best xtractl/dist/linux-arm64/xtractl
2522 - chmod +x xtractl/dist/linux-amd64/xtractl
2623 - chmod +x xtractl/dist/linux-arm64/xtractl
27- - ls -lR xtractl/dist
2824 - tar -czvf xtractl_${CI_COMMIT_SHA:0:8}_linux_amd64.tar.gz -C xtractl/dist/linux-amd64 xtractl
2925 - tar -czvf xtractl_${CI_COMMIT_SHA:0:8}_linux_arm64.tar.gz -C xtractl/dist/linux-arm64 xtractl
3026 - gh release create ${CI_COMMIT_SHA:0:8} --title "snapshot ${CI_COMMIT_SHA:0:8}" --draft
You can’t perform that action at this time.
0 commit comments