chore(ci): always upload build logs for CPN runs (#6682)

This commit is contained in:
Peter Feerick
2025-10-20 13:02:42 +10:00
committed by GitHub
parent ee0f70ec87
commit f194260070
4 changed files with 91 additions and 7 deletions
+13 -1
View File
@@ -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
}