chore(ci): always upload build logs for CPN runs (#6682)
This commit is contained in:
@@ -14,6 +14,9 @@ if [[ -z ${OUTDIR} ]]; then
|
||||
OUTDIR="$(pwd)/output"
|
||||
fi
|
||||
|
||||
# Create a master log file for the entire build process
|
||||
MASTER_LOG="build-summary.log"
|
||||
|
||||
QUIET_FLAGS=""
|
||||
if [[ "$CMAKE_GENERATOR" == "Ninja" ]]; then
|
||||
QUIET_FLAGS="-- --quiet"
|
||||
@@ -58,11 +61,20 @@ output_error_log() {
|
||||
|
||||
if [[ -f "$log_file" ]]; then
|
||||
echo "------------------------------------------"
|
||||
echo " Full error output from $log_file:"
|
||||
echo " Full error output from $log_file ($context):"
|
||||
echo "------------------------------------------"
|
||||
cat "$log_file"
|
||||
echo "------------------------------------------"
|
||||
|
||||
# Also append to master log for aggregation
|
||||
{
|
||||
echo "=== Error from $log_file ($context) ==="
|
||||
cat "$log_file"
|
||||
echo "=== End of $log_file ==="
|
||||
} >> "$MASTER_LOG"
|
||||
else
|
||||
echo "⚠️ Warning: Log file $log_file not found for $context"
|
||||
echo "⚠️ Warning: Log file $log_file not found for $context" >> "$MASTER_LOG"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user