6969 mv bin/${{ env.BUILD_CONFIGURATION }}/bundle/container-dSYM.zip outputs
7070
7171 - name : Test the container project
72+ timeout-minutes : 5
7273 run : |
7374 APP_ROOT=$(mktemp -d -p "${RUNNER_TEMP}")
7475 LOG_ROOT="${APP_ROOT}/logs"
@@ -81,23 +82,19 @@ jobs:
8182 echo no_proxy=${no_proxy}
8283 echo "APP_ROOT=${APP_ROOT}" >> $GITHUB_ENV
8384 echo "LOG_ROOT=${LOG_ROOT}" >> $GITHUB_ENV
84- make APP_ROOT="${APP_ROOT}" LOG_ROOT="${LOG_ROOT}" test install-kernel integration
85+ make APP_ROOT="${APP_ROOT}" LOG_ROOT="${LOG_ROOT}" test install-kernel integration || status=$?
86+ if [ "${status:-0}" -ne "0" ] ; then
87+ echo "Tests failed with status: ${status}"
88+ if [ -d "${LOG_ROOT}" ] ; then
89+ echo "Collecting logs from ${LOG_ROOT}..."
90+ tar czf container-logs.tar.gz -C "$(dirname "${LOG_ROOT}")" "$(basename "${LOG_ROOT}")"
91+ echo "Log archive created: container-logs.tar.gz"
92+ fi
93+ exit ${status}
94+ fi
8595 env :
8696 DEVELOPER_DIR : " /Applications/Xcode-latest.app/Contents/Developer"
8797
88- - name : Collect logs
89- if : always()
90- run : |
91- echo ${LOG_ROOT}
92- ls -l ${LOG_ROOT} || true
93- if [ -n "${LOG_ROOT}" ] && [ -d "${LOG_ROOT}" ] ; then
94- echo "Collecting logs from ${LOG_ROOT}..."
95- tar czf container-logs.tar.gz -C "$(dirname "${LOG_ROOT}")" "$(basename "${LOG_ROOT}")"
96- echo "Log archive created: container-logs.tar.gz"
97- else
98- echo "No logs to collect (LOG_ROOT not set or directory does not exist)"
99- fi
100-
10198 - name : Upload logs if present
10299 if : always()
103100 uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
0 commit comments