Skip to content

Commit

Permalink
hack: remove config of bazel run for virtctl
Browse files Browse the repository at this point in the history
As we have defined the specific goarch in cmd/virtctl/Build.bazel
for different cpu arch, we do not need to config architecture in
bazel run

Signed-off-by: howard zhang <[email protected]>
  • Loading branch information
zhlhahaha authored and tiraboschi committed Jun 1, 2023
1 parent 3aa0cae commit 8eccb5d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions hack/bazel-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,30 +62,24 @@ bazel run \

# build platform native virtctl explicitly
bazel run \
--config=${HOST_ARCHITECTURE} \
:build-virtctl -- ${CMD_OUT_DIR}/virtctl/virtctl

# compile virtctl for amd64 and arm64

# linux
bazel run \
--config=${HOST_ARCHITECTURE} \
:build-virtctl-amd64 -- ${CMD_OUT_DIR}/virtctl/virtctl-${KUBEVIRT_VERSION}-linux-amd64

bazel run \
--config=${HOST_ARCHITECTURE} \
:build-virtctl-arm64 -- ${CMD_OUT_DIR}/virtctl/virtctl-${KUBEVIRT_VERSION}-linux-arm64

# darwin
bazel run \
--config=${HOST_ARCHITECTURE} \
:build-virtctl-darwin -- ${CMD_OUT_DIR}/virtctl/virtctl-${KUBEVIRT_VERSION}-darwin-amd64

bazel run \
--config=${HOST_ARCHITECTURE} \
:build-virtctl-darwin-arm64 -- ${CMD_OUT_DIR}/virtctl/virtctl-${KUBEVIRT_VERSION}-darwin-arm64

# windows
bazel run \
--config=${HOST_ARCHITECTURE} \
:build-virtctl-windows -- ${CMD_OUT_DIR}/virtctl/virtctl-${KUBEVIRT_VERSION}-windows-amd64.exe

0 comments on commit 8eccb5d

Please sign in to comment.