-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
66455: build: add script for cross-compilation job to windows via bazel r=rail a=rickystewart We need to teach `bazci` about the configurations and add a new script to support this. Also run both the Linux cross job and the Windows cross job with `-c opt`, so we can start getting optimized builds. Also add a small hack to `proj` to work around OSGeo/PROJ#1235. Closes #66208 Closes #66209 Release note: None 66498: roachprod: update to recommended ubuntu focal image r=rail a=rickystewart The previous version was deprecated -- see #66183 for context. Release note: None Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
8 changed files
with
77 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeuo pipefail | ||
|
||
# TODO(ricky): switching configurations to build `bazci` for the host before | ||
# building the actual `cockroach` binary introduces some delays. It doesn't | ||
# cause bazel to throw away its entire cache or anything, but it definitely | ||
# rebuilds more than is technically necessary. This merits more investigation. | ||
bazel build //pkg/cmd/bazci --config=ci | ||
$(bazel info bazel-bin)/pkg/cmd/bazci/bazci_/bazci --compilation_mode opt \ | ||
--config ci \ | ||
--config crosswindows \ | ||
build //pkg/cmd/cockroach-short |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/teamcity-support.sh" # For $root | ||
source "$(dirname "${0}")/teamcity-bazel-support.sh" # For run_bazel | ||
|
||
tc_prepare | ||
|
||
tc_start_block "Run Bazel build" | ||
run_bazel build/bazelutil/bazelbuildwindows.sh | ||
tc_end_block "Run Bazel build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters