From 72de402e46fa4bc7f8b82ccc11c5e7c0323d166f Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Wed, 15 Feb 2023 17:45:17 +0100 Subject: [PATCH] CI: print Cmake configure error log only in case it failed --- .github/workflows/actions/linux/configure/action.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/actions/linux/configure/action.yml b/.github/workflows/actions/linux/configure/action.yml index 05674ae499..bf06dcebd3 100644 --- a/.github/workflows/actions/linux/configure/action.yml +++ b/.github/workflows/actions/linux/configure/action.yml @@ -59,14 +59,15 @@ runs: if [ ${{ steps.configure.outcome }} == 'success' ] then echo "
:heavy_check_mark: CMake configure succeeded" >> ${{ inputs.reportFile }} + echo "" >> ${{ inputs.reportFile }} + echo "Configure Error Log (stderr output):" >> ${{ inputs.reportFile }} + echo '```' >> ${{ inputs.reportFile }} + cat ${{ inputs.errorFile }} >> ${{ inputs.reportFile }} + echo '```' >> ${{ inputs.reportFile }} else echo "
:fire: CMake configure failed" >> ${{ inputs.reportFile }} fi echo "" >> ${{ inputs.reportFile }} - echo "Configure Error Log (stderr output):" >> ${{ inputs.reportFile }} - echo '```' >> ${{ inputs.reportFile }} - cat ${{ inputs.errorFile }} >> ${{ inputs.reportFile }} - echo '```' >> ${{ inputs.reportFile }} echo "Configure Log (stdout output):" >> ${{ inputs.reportFile }} echo '```' >> ${{ inputs.reportFile }} tail -n 60 ${{ inputs.logFile }} >> ${{ inputs.reportFile }}