CI: Upload build errors on failure.
This commit is contained in:
parent
462986f38e
commit
594e8e8f62
10
.github/workflows/cmake.yml
vendored
10
.github/workflows/cmake.yml
vendored
@ -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
|
||||
|
9
.github/workflows/configure.yml
vendored
9
.github/workflows/configure.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user