CI: Upload build errors on failure.

This commit is contained in:
Nathan Moinvaziri 2022-10-10 18:39:14 -07:00 committed by Mark Adler
parent 462986f38e
commit 594e8e8f62
2 changed files with 19 additions and 0 deletions

View File

@ -61,3 +61,13 @@ jobs:
- name: Run test cases
run: ctest -C Release --output-on-failure --max-width 120
working-directory: ${{ matrix.build-dir || '.' }}
- name: Upload build errors
uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{ matrix.name }} (cmake)
path: |
**/CMakeFiles/CMakeOutput.log
**/CMakeFiles/CMakeError.log
retention-days: 7

View File

@ -45,3 +45,12 @@ jobs:
- name: Run test cases
run: make test
working-directory: ${{ matrix.build-dir }}
- name: Upload build errors
uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{ matrix.name }} (configure)
path: |
${{ matrix.build-dir || '.' }}/configure.log
retention-days: 7