Skip to content

Commit 290be65

Browse files
committed
CI : Add step to help debug failures
1 parent b01049d commit 290be65

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ jobs:
157157
- name: Build
158158
run: |
159159
scons -j 2 install BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache
160+
# Copy the config log for use in the "Debug Failures" step, because it
161+
# gets clobbered by the `scons test*` call below.
162+
cp config.log buildConfig.log
160163
161164
- name: Test
162165
run: |
@@ -185,3 +188,17 @@ jobs:
185188

186189
- name: Limit cache size
187190
run: python ./.github/workflows/main/limitCacheSize.py
191+
192+
- name: Debug Failures
193+
run: |
194+
# Give MacOS crash reporter time to do its thing
195+
sleep 20
196+
# Print SCons logs and MacOS crash logs
197+
shopt -s nullglob
198+
for logFile in buildConfig.log ~/Library/Logs/DiagnosticReports/*.crash
199+
do
200+
echo $logFile
201+
cat $logFile
202+
done
203+
shell: bash
204+
if: failure()

0 commit comments

Comments
 (0)