Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
Adding targets for ppc64le support (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshant Gupta authored Mar 15, 2021
1 parent 11a3f1d commit b53bbfd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ build-kfctl: deepcopy generate fmt vet
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=${TAG}" -o bin/darwin/kfctl cmd/kfctl/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/linux/kfctl cmd/kfctl/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/arm64/kfctl cmd/kfctl/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/ppc64le/kfctl cmd/kfctl/main.go
cp bin/$(ARCH)/kfctl bin/kfctl

# Fast rebuilds useful for development.
Expand All @@ -144,6 +145,7 @@ build-kfctl-tgz: build-kfctl
cd bin/linux && tar -cvzf kfctl_$(TAG)_linux.tar.gz ./kfctl
cd bin/darwin && tar -cvzf kfctl_${TAG}_darwin.tar.gz ./kfctl
cd bin/arm64 && tar -cvzf kfctl_${TAG}_arm64.tar.gz ./kfctl
cd bin/ppc64le && tar -cvzf kfctl_${TAG}_ppc64le.tar.gz ./kfctl

build-and-push-operator: build-operator push-operator
build-push-update-operator: build-operator push-operator update-operator-image
Expand Down Expand Up @@ -206,6 +208,12 @@ push-to-github-release: build-kfctl-tgz
--tag $(TAG) \
--name "kfctl_$(TAG)_arm64.tar.gz" \
--file bin/arm64/kfctl_$(TAG)_arm64.tar.gz
github-release upload \
--user kubeflow \
--repo kubeflow \
--tag $(TAG) \
--name "kfctl_$(TAG)_ppc64le.tar.gz" \
--file bin/ppc64le/kfctl_$(TAG)_ppc64le.tar.gz

build-kfctl-container:
DOCKER_BUILDKIT=1 docker build \
Expand Down

0 comments on commit b53bbfd

Please sign in to comment.