From 04665726f96486994d53057e0a36e571e400c60c Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 30 Nov 2022 11:03:16 -0500 Subject: [PATCH] Fix #623, show stderr output on doc build workflow 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. --- .github/workflows/build-deploy-doc.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy-doc.yml b/.github/workflows/build-deploy-doc.yml index 113b61a9d..aa6330223 100644 --- a/.github/workflows/build-deploy-doc.yml +++ b/.github/workflows/build-deploy-doc.yml @@ -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 @@ -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