Skip to content

Commit

Permalink
CUS-356: release: add linux/arm64 binary
Browse files Browse the repository at this point in the history
  • Loading branch information
jayconrod committed Aug 30, 2024
1 parent cb34acd commit e1c3b8e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ gazelle(name = "gazelle")
filegroup(
name = "release_artifacts",
srcs = [
"//cmd/engflow_auth:engflow_auth_linux_arm64",
"//cmd/engflow_auth:engflow_auth_linux_x64",
"//cmd/engflow_auth:engflow_auth_macos_arm64",
"//cmd/engflow_auth:engflow_auth_macos_x64",
Expand Down
7 changes: 7 additions & 0 deletions cmd/engflow_auth/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,10 @@ go_cross_binary(
target = ":engflow_auth",
visibility = RELEASE_ARTIFACT,
)

go_cross_binary(
name = "engflow_auth_linux_arm64",
platform = "@rules_go//go/toolchain:linux_arm64_cgo",
target = ":engflow_auth",
visibility = RELEASE_ARTIFACT,
)
5 changes: 5 additions & 0 deletions infra/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ echo "[FINISH] Building artifacts"
# resolution, we may be able to drop this staging step and the corresponding
# temp dir.
echo "[START] Staging artifacts"
cp \
bazel-out/k8-fastbuild-ST-*/bin/cmd/engflow_auth/engflow_auth_linux_arm64 \
"${ARTIFACTS_DIR}/engflow_auth_linux_arm64"

cp \
bazel-out/k8-fastbuild-ST-*/bin/cmd/engflow_auth/engflow_auth_linux_x64 \
"${ARTIFACTS_DIR}/engflow_auth_linux_x64"
Expand All @@ -119,6 +123,7 @@ echo "[START] Creating release"
${GH_CLI} release create \
"${RELEASE_VERSION}" \
--generate-notes \
"${ARTIFACTS_DIR}/engflow_auth_linux_arm64#engflow_auth (Linux, arm64)" \
"${ARTIFACTS_DIR}/engflow_auth_linux_x64#engflow_auth (Linux, x64)" \
"${ARTIFACTS_DIR}/engflow_auth_macos_arm64#engflow_auth (macOS, arm64)" \
"${ARTIFACTS_DIR}/engflow_auth_macos_x64#engflow_auth (macOS, x64)" \
Expand Down

0 comments on commit e1c3b8e

Please sign in to comment.