diff --git a/.github/workflows/actions/linux/build/action.yml b/.github/workflows/actions/linux/build/action.yml index 7c9cc8e035..d4906eff96 100644 --- a/.github/workflows/actions/linux/build/action.yml +++ b/.github/workflows/actions/linux/build/action.yml @@ -46,7 +46,8 @@ runs: id: build shell: bash run: | - cmake --build ${{ inputs.builddir }} -j$(nproc) ${{ inputs.extraParameters }} > ${{ inputs.logFile }} 2> ${{ inputs.errorFile }} + (stdbuf -oL -eL cmake --build ${{ inputs.builddir }} -j$(nproc) ${{ inputs.extraParameters }}) \ + 2> >(tee -a ${{ inputs.errorFile }}) | tee -a ${{ inputs.logFile }} - name: Write report shell: bash if: always() @@ -68,8 +69,3 @@ runs: echo '```' >> ${{ inputs.reportFile }} echo "">> ${{ inputs.reportFile }} echo "" >> ${{ inputs.reportFile }} - # Print the Log to the console - cat ${{ inputs.errorFile }} - echo "::group::Build Log" - cat ${{ inputs.logFile }} - echo "::endgroup::" diff --git a/.github/workflows/actions/linux/configure/action.yml b/.github/workflows/actions/linux/configure/action.yml index 7fba0b5cc7..05674ae499 100644 --- a/.github/workflows/actions/linux/configure/action.yml +++ b/.github/workflows/actions/linux/configure/action.yml @@ -50,7 +50,8 @@ runs: id: configure shell: bash run: | - cmake -S ${{ inputs.sourcedir }} -B ${{ inputs.builddir }} -D CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE ${{inputs.extraParameters }} > ${{ inputs.logFile }} 2> ${{ inputs.errorFile }} + (stdbuf -oL -eL cmake -S ${{ inputs.sourcedir }} -B ${{ inputs.builddir }} -D CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE ${{inputs.extraParameters }}) \ + 2> >(tee -a ${{ inputs.errorFile }}) | tee -a ${{ inputs.logFile }} - name: Write report shell: bash if: always() @@ -72,8 +73,3 @@ runs: echo '```' >> ${{ inputs.reportFile }} echo "">> ${{ inputs.reportFile }} echo "" >> ${{ inputs.reportFile }} - # Print the Log to the console - cat ${{ inputs.errorFile }} - echo "::group::Configure Log" - cat ${{ inputs.logFile }} - echo "::endgroup::" diff --git a/.github/workflows/actions/linux/install/action.yml b/.github/workflows/actions/linux/install/action.yml index 0ed637a850..52fed39f74 100644 --- a/.github/workflows/actions/linux/install/action.yml +++ b/.github/workflows/actions/linux/install/action.yml @@ -46,7 +46,8 @@ runs: id: install shell: bash run: | - sudo cmake --install ${{ inputs.builddir }} ${{ inputs.extraParameters }} >> ${{ inputs.logFile }} 2>> ${{ inputs.errorFile }} + (stdbuf -oL -eL sudo cmake --install ${{ inputs.builddir }} ${{ inputs.extraParameters }}) \ + 2> >(tee -a ${{ inputs.errorFile }}) | tee -a ${{ inputs.logFile }} - name: Write report shell: bash if: always() @@ -68,8 +69,3 @@ runs: echo '```' >> ${{ inputs.reportFile }} echo "">> ${{ inputs.reportFile }} echo "" >> ${{ inputs.reportFile }} - # Print the Log to the console - cat ${{ inputs.errorFile }} - echo "::group::Install Log" - cat ${{ inputs.logFile }} - echo "::endgroup::" diff --git a/.github/workflows/actions/runTests/action.yml b/.github/workflows/actions/runTests/action.yml index e7ec31c020..7b120d4475 100644 --- a/.github/workflows/actions/runTests/action.yml +++ b/.github/workflows/actions/runTests/action.yml @@ -43,7 +43,7 @@ runs: id: runTests shell: bash run: | - stdbuf -oL -eL ${{ inputs.testCommand }} |& sed -E '/[[:blank:]]*\([[:digit:]]{1,3} %\)[[:blank:]]*/d' | tee ${{ inputs.logFile }} + stdbuf -oL -eL ${{ inputs.testCommand }} |& sed -E '/[[:blank:]]*\([[:digit:]]{1,3} %\)[[:blank:]]*/d' | tee -a ${{ inputs.logFile }} - name: Write report shell: bash if: always()