Skip to content

Commit

Permalink
Fix #623, show stderr output on doc build workflow
Browse files Browse the repository at this point in the history
Tee the stderr output to the console, so if the "Build Documentation"
step fails in this workflow, the errors will be visible in the log.

Without this, the errors are hidden in a file that is never shown nor
uploaded so it cannot be seen what went wrong.
  • Loading branch information
jphickey committed Nov 30, 2022
1 parent 1b0b338 commit 0466572
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-deploy-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Add Repo To Build
if: ${{ inputs.app-name != '' }}
run: sed -i '/list(APPEND MISSION_GLOBAL_APPLIST/a list(APPEND MISSION_GLOBAL_APPLIST ${{ inputs.app-name }})' sample_defs/targets.cmake
run: echo 'set(MISSION_GLOBAL_APPLIST ${{ inputs.app-name }})' >> sample_defs/targets.cmake

- name: Make Prep
run: make prep
Expand All @@ -112,7 +112,7 @@ jobs:
- name: Build Document
run: |
make -C build ${{ matrix.target }} > ${{ matrix.target }}_stdout.txt 2> ${{ matrix.target }}_stderr.txt
make -C build ${{ matrix.target }} 2>&1 > ${{ matrix.target }}_stdout.txt | tee ${{ matrix.target }}_stderr.txt
mv build/docs/${{ matrix.target }}/${{ matrix.target }}-warnings.log .
- name: Archive Document Build Logs
Expand Down

0 comments on commit 0466572

Please sign in to comment.