Temporary Kokoro build for macos-next. (#9693)
This build will be used to troubleshoot building on a newer macOS image. Once it is stable, this config will replace the "macos" build.pull/9701/head
parent
5b67e77876
commit
520c601c99
4 changed files with 66 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||||||
|
# macOS-next |
||||||
|
|
||||||
|
This builder is temporary for developing and testing builds using the "next" |
||||||
|
macOS version without affecting the ordinary builds. |
@ -0,0 +1,36 @@ |
|||||||
|
#!/bin/bash -ex |
||||||
|
# |
||||||
|
# Build file to set up and run tests |
||||||
|
|
||||||
|
# NOTE: in order to avoid blocking anyone, this job always succeeds for now. |
||||||
|
exit 0 |
||||||
|
|
||||||
|
# Set up artifact output location |
||||||
|
: ${KOKORO_ARTIFACTS_DIR:=/tmp/kokoro_artifacts} |
||||||
|
: ${BUILD_LOGDIR:=$KOKORO_ARTIFACTS_DIR/logs} |
||||||
|
mkdir -p ${BUILD_LOGDIR} |
||||||
|
|
||||||
|
# Change to repo root |
||||||
|
cd $(dirname $0)/../../.. |
||||||
|
|
||||||
|
# Update submodules |
||||||
|
git submodule update --init --recursive |
||||||
|
|
||||||
|
# Build in a separate directory |
||||||
|
mkdir -p cmake/build |
||||||
|
cd cmake/build |
||||||
|
|
||||||
|
# Print some basic info |
||||||
|
xcode-select --print-path |
||||||
|
xcodebuild -version |
||||||
|
xcrun --show-sdk-path |
||||||
|
|
||||||
|
# Build everything first |
||||||
|
cmake -G Xcode ../.. \ |
||||||
|
2>&1 | tee ${BUILD_LOGDIR}/00_configure_sponge_log.log |
||||||
|
cmake --build . --config Debug \ |
||||||
|
2>&1 | tee ${BUILD_LOGDIR}/01_build_sponge_log.log |
||||||
|
|
||||||
|
# Run tests |
||||||
|
ctest -C Debug --verbose --quiet \ |
||||||
|
--output-log ${BUILD_LOGDIR}/02_test_sponge_log.log |
@ -0,0 +1,13 @@ |
|||||||
|
# Config file for running tests in Kokoro |
||||||
|
|
||||||
|
# Location of the build script in repository |
||||||
|
build_file: "protobuf/kokoro/macos-next/cpp/build.sh" |
||||||
|
timeout_mins: 1440 |
||||||
|
|
||||||
|
# Upload logs |
||||||
|
action: { |
||||||
|
define_artifacts: { |
||||||
|
regex: "protobuf/cmake/build/**/*sponge_log.log" |
||||||
|
regex: "protobuf/cmake/build/**/*sponge_log.xml" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
# Config file for running tests in Kokoro |
||||||
|
|
||||||
|
# Location of the build script in repository |
||||||
|
build_file: "protobuf/kokoro/macos-next/cpp/build.sh" |
||||||
|
timeout_mins: 1440 |
||||||
|
|
||||||
|
# Upload logs |
||||||
|
action: { |
||||||
|
define_artifacts: { |
||||||
|
regex: "protobuf/cmake/build/**/*sponge_log.log" |
||||||
|
regex: "protobuf/cmake/build/**/*sponge_log.xml" |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue