Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
azahnen committed Dec 7, 2023
1 parent 4ea2955 commit a85e3c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .woodpecker/xtractl-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pipeline:
image: ghcr.io/ldproxy/golang-jdk:1.2
commands:
- cd xtractl
- GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o dist/linux-amd64/xtractl
- GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o dist/linux-arm64/xtractl
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o dist/linux-amd64/xtractl
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o dist/linux-arm64/xtractl

upx:
image: harshavardhanj/upx:3.95
Expand Down
14 changes: 5 additions & 9 deletions .woodpecker/xtractl-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,17 @@ pipeline:
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o dist/linux-amd64/xtractl
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o dist/linux-arm64/xtractl

# upx:
# image: harshavardhanj/upx:3.95
# commands:
# - upx --best xtractl/dist/linux-amd64/xtractl
# - upx --best xtractl/dist/linux-arm64/xtractl
upx:
image: harshavardhanj/upx:3.95
commands:
- upx --best xtractl/dist/linux-amd64/xtractl
- upx --best xtractl/dist/linux-arm64/xtractl

github:
image: meltwaterfoundation/github-cli:2.29.0
commands:
# - apk update && apk add upx
# - upx --best xtractl/dist/linux-amd64/xtractl
# - upx --best xtractl/dist/linux-arm64/xtractl
- chmod +x xtractl/dist/linux-amd64/xtractl
- chmod +x xtractl/dist/linux-arm64/xtractl
- ls -lR xtractl/dist
- tar -czvf xtractl_${CI_COMMIT_SHA:0:8}_linux_amd64.tar.gz -C xtractl/dist/linux-amd64 xtractl
- tar -czvf xtractl_${CI_COMMIT_SHA:0:8}_linux_arm64.tar.gz -C xtractl/dist/linux-arm64 xtractl
- gh release create ${CI_COMMIT_SHA:0:8} --title "snapshot ${CI_COMMIT_SHA:0:8}" --draft
Expand Down

0 comments on commit a85e3c2

Please sign in to comment.