Skip to content

Commit 0e14cf0

Browse files
committed
Read logs on CMake build failure
Signed-off-by: Steffen Jaeckel <[email protected]>
1 parent c07fc5b commit 0e14cf0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,8 @@ jobs:
223223
CC=${{ matrix.cc }} cmake ${{ matrix.config.CMAKEOPTIONS }} ${{ matrix.build_type }} ..
224224
make -j$(nproc)
225225
ctest
226+
- name: error logs
227+
if: ${{ failure() }}
228+
run: |
229+
cat build/Testing/Temporary/LastTest.log || true
230+
cat demo/build/Testing/Temporary/LastTest.log || true

0 commit comments

Comments
 (0)