From e017fd3e14ae392681ff98f8666896252b0f8587 Mon Sep 17 00:00:00 2001 From: Tallicia Date: Tue, 30 Jul 2024 16:23:46 -0500 Subject: [PATCH] feature: adding arm builds (#559) added arm64 builds for linux and osx [#187597749] --- ci/pipelines/cf-mgmt/pipeline.yml | 4 ++++ ci/tasks/build.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ci/pipelines/cf-mgmt/pipeline.yml b/ci/pipelines/cf-mgmt/pipeline.yml index 04febce0..18e134bd 100644 --- a/ci/pipelines/cf-mgmt/pipeline.yml +++ b/ci/pipelines/cf-mgmt/pipeline.yml @@ -404,10 +404,14 @@ jobs: tag: compiled-output/tag globs: - compiled-output/cf-mgmt-linux + - compiled-output/cf-mgmt-linux-arm64 - compiled-output/cf-mgmt-osx + - compiled-output/cf-mgmt-osx-arm64 - compiled-output/cf-mgmt.exe - compiled-output/cf-mgmt-config-linux + - compiled-output/cf-mgmt-linux-arm64 - compiled-output/cf-mgmt-config-osx + - compiled-output/cf-mgmt-config-osx-arm64 - compiled-output/cf-mgmt-config.exe - load_var: github-release-url file: releases/url diff --git a/ci/tasks/build.sh b/ci/tasks/build.sh index 3ef10925..c01d208f 100755 --- a/ci/tasks/build.sh +++ b/ci/tasks/build.sh @@ -40,11 +40,15 @@ cp -R ${SOURCE_DIR}/* ${WORKING_DIR}/. pushd ${WORKING_DIR} > /dev/null CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ${OUTPUT_DIR}/cf-mgmt-linux -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt/main.go + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ${OUTPUT_DIR}/cf-mgmt-linux-arm64 -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt/main.go GOOS=darwin GOARCH=amd64 go build -o ${OUTPUT_DIR}/cf-mgmt-osx -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt/main.go + GOOS=darwin GOARCH=arm64 go build -o ${OUTPUT_DIR}/cf-mgmt-osx-arm64 -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt/main.go GOOS=windows GOARCH=amd64 go build -o ${OUTPUT_DIR}/cf-mgmt.exe -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt/main.go CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ${OUTPUT_DIR}/cf-mgmt-config-linux -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt-config/main.go + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ${OUTPUT_DIR}/cf-mgmt-config-linux-arm64 -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt-config/main.go GOOS=darwin GOARCH=amd64 go build -o ${OUTPUT_DIR}/cf-mgmt-config-osx -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt-config/main.go + GOOS=darwin GOARCH=arm64 go build -o ${OUTPUT_DIR}/cf-mgmt-config-osx-arm64 -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt-config/main.go GOOS=windows GOARCH=amd64 go build -o ${OUTPUT_DIR}/cf-mgmt-config.exe -ldflags "-X github.com/vmwarepivotallabs/cf-mgmt/configcommands.VERSION=${VERSION} -X github.com/vmwarepivotallabs/cf-mgmt/configcommands.COMMIT=${COMMIT}" cmd/cf-mgmt-config/main.go cp Dockerfile ${OUTPUT_DIR}/.