Skip to content

Commit

Permalink
Add tekton cli build for s390x architecture
Browse files Browse the repository at this point in the history
This will add s390x target to Makefile and to .goreleaser.yaml

Signed-off-by: Yulia Gaponenko <[email protected]>
  • Loading branch information
barthy1 authored and tekton-robot committed Apr 1, 2020
1 parent bfbc333 commit 2219bd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ builds:
goarch:
- amd64
- arm64
- s390x
ldflags:
- -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion={{.Version}}
archives:
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ vendor:
@go mod vendor

.PHONY: cross
cross: amd64 386 arm arm64 ## build cross platform binaries
cross: amd64 386 arm arm64 s390x ## build cross platform binaries

.PHONY: amd64
amd64:
Expand All @@ -38,6 +38,10 @@ arm:
arm64:
GOOS=linux GOARCH=arm64 go build -mod=vendor $(LDFLAGS) -o bin/tkn-linux-arm64 ./cmd/tkn

.PHONY: s390x
s390x:
GOOS=linux GOARCH=s390x go build -mod=vendor $(LDFLAGS) -o bin/tkn-linux-s390x ./cmd/tkn

bin/%: cmd/% FORCE
go build -mod=vendor $(LDFLAGS) -v -o $@ ./$<

Expand Down

0 comments on commit 2219bd9

Please sign in to comment.