From 04afb4a07ff538bbb903e18c269b8d2e93352543 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Mon, 6 Jul 2020 16:50:46 +0200 Subject: [PATCH] Add ppc64le to cross targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ppc64le is the POWER architecture 🥀 Signed-off-by: Vincent Demeester --- .goreleaser.yml | 1 + Makefile | 6 +++++- README.md | 12 ++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index d4d11b99e8..03f9adf2d0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -13,6 +13,7 @@ builds: - amd64 - arm64 - s390x + - ppc64le ldflags: - -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion={{.Version}} archives: diff --git a/Makefile b/Makefile index 4bdb3af797..6823017172 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ vendor: @go mod vendor .PHONY: cross -cross: amd64 386 arm arm64 s390x ## build cross platform binaries +cross: amd64 386 arm arm64 s390x ppc64le ## build cross platform binaries .PHONY: amd64 amd64: @@ -55,6 +55,10 @@ arm64: s390x: GOOS=linux GOARCH=s390x go build -mod=vendor $(LDFLAGS) -o bin/tkn-linux-s390x ./cmd/tkn +.PHONY: ppc64le +ppc64le: + GOOS=linux GOARCH=ppc64le go build -mod=vendor $(LDFLAGS) -o bin/tkn-linux-ppc64le ./cmd/tkn + bin/%: cmd/% FORCE go build -mod=vendor $(LDFLAGS) -v -o $@ ./$< diff --git a/README.md b/README.md index e7fefeb562..bea2588aed 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,18 @@ Download the latest binary executable for your operating system: sudo tar xvzf tkn_0.10.0_Linux_s390x.tar.gz -C /usr/local/bin/ tkn ``` +* Linux IBM P + + *To complete on 0.11.0 release* + + ```shell + # Get the tar.gz + curl -LO https://github.com/tektoncd/cli/releases/download/v0.10.0/tkn_0.10.0_Linux_ppc64le.tar.gz + # Extract tkn to your PATH (e.g. /usr/local/bin) + sudo tar xvzf tkn_0.10.0_Linux_ppc64le.tar.gz -C /usr/local/bin/ tkn + ``` + + #### Linux RPMs If you are running on any of the following rpm based distros: