Skip to content

Commit

Permalink
ci: only build roachprod on Unix
Browse files Browse the repository at this point in the history
This fails to build on Windows which was breaking CI.

Release note: None
  • Loading branch information
rickystewart committed Jul 19, 2022
1 parent da0a1b8 commit 024b27a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build/teamcity/cockroach/ci/builds/build_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ fi

CONFIG="$1"

# Extra targets to build on Linux x86_64 only.
EXTRA_TARGETS=

# Extra targets to build on Linux x86_64 only.
if [ "$CONFIG" == "crosslinux" ]
then
DOC_TARGETS=$(grep '^//' docs/generated/bazel_targets.txt)
Expand All @@ -20,10 +21,15 @@ then
EXTRA_TARGETS="$DOC_TARGETS $GO_TARGETS $BINARY_TARGETS"
fi

# Extra targets to build on Unix only.
if [ "$CONFIG" != "crosswindows" ]
then
EXTRA_TARGETS="$EXTRA_TARGETS //pkg/cmd/roachprod"
fi

bazel build //pkg/cmd/bazci --config=ci
$(bazel info bazel-bin --config=ci)/pkg/cmd/bazci/bazci_/bazci --compilation_mode opt \
--config "$CONFIG" --config ci --config with_ui \
build //pkg/cmd/cockroach-short //pkg/cmd/cockroach \
//pkg/cmd/cockroach-sql \
//pkg/cmd/roachprod \
//pkg/cmd/cockroach-oss //c-deps:libgeos $EXTRA_TARGETS

0 comments on commit 024b27a

Please sign in to comment.