Skip to content

[CI] Tee Ninja Output to Log Files #152331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .ci/monolithic-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
start-group "ninja"

# Targets are not escaped as they are passed as separate arguments.
ninja -C "${BUILD_DIR}" -k 0 ${targets}
ninja -C "${BUILD_DIR}" -k 0 ${targets} | tee ninja.log

if [[ "${runtime_targets}" != "" ]]; then
start-group "ninja Runtimes"

ninja -C "${BUILD_DIR}" ${runtime_targets}
ninja -C "${BUILD_DIR}" ${runtime_targets} | tee ninja_runtimes.log
fi

# Compiling runtimes with just-built Clang and running their tests
Expand All @@ -120,7 +120,8 @@ if [[ "${runtime_targets_needs_reconfig}" != "" ]]; then

start-group "ninja Runtimes C++26"

ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig}
ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig} \
| tee ninja_runtimes_needs_reconfig1.log

start-group "CMake Runtimes Clang Modules"

Expand All @@ -131,5 +132,6 @@ if [[ "${runtime_targets_needs_reconfig}" != "" ]]; then

start-group "ninja Runtimes Clang Modules"

ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig}
ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig} \
| tee ninja_runtimes_needs_reconfig2.log
fi
2 changes: 1 addition & 1 deletion .ci/monolithic-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
start-group "ninja"

# Targets are not escaped as they are passed as separate arguments.
ninja -C "${BUILD_DIR}" -k 0 ${targets}
ninja -C "${BUILD_DIR}" -k 0 ${targets} | tee ninja.log