mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
github actions: archive logs on failure.
The test harnesses log details to files during the run, which is helpful when debugging issues which are only reported as a run failure in the console output. When the build job fails, upload an artifact consisting of a zipfile with all the log files from the build, so users can investigate test failures in ci more easily.
This commit is contained in:
7
.github/workflows/action.yml
vendored
7
.github/workflows/action.yml
vendored
@@ -149,3 +149,10 @@ jobs:
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ${{ matrix.configure-opts }} -DCMAKE_FIND_FRAMEWORK=NEVER
|
||||
cmake --build .
|
||||
ctest -V
|
||||
|
||||
- name: Upload logs on failure
|
||||
uses: actions/upload-artifact@v2
|
||||
if: failure()
|
||||
with:
|
||||
name: flac-${{ github.sha }}-${{ github.run_id }}-logs
|
||||
path: ./**/*.log
|
||||
|
||||
Reference in New Issue
Block a user