CI: add pipefail to additional workflow actions.

This commit is contained in:
Jacob Oursland
2023-12-18 09:34:05 -08:00
committed by Adrián Insaurralde Avalos
parent 759930e3aa
commit 2ca6ac4a23
4 changed files with 6 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ runs:
id: configure
shell: bash -l {0}
run: |
set -o pipefail
(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

View File

@@ -48,6 +48,7 @@ runs:
id: install
shell: bash -l {0}
run: |
set -o pipefail
(stdbuf -oL -eL sudo cmake --install ${{ inputs.builddir }} ${{ inputs.extraParameters }}) \
2> >(tee -a ${{ inputs.errorFile }}) | tee -a ${{ inputs.logFile }}
- name: Write report

View File

@@ -45,7 +45,9 @@ runs:
steps:
- name: Run C++ tests
shell: bash -l {0}
run: ${{ inputs.testCommand }} | tee -a ${{ inputs.testLogFile }}
run: |
set -o pipefail
${{ inputs.testCommand }} | tee -a ${{ inputs.testLogFile }}
- name: Parse test results
if: always()
id: report

View File

@@ -45,6 +45,7 @@ runs:
id: runTests
shell: bash -l {0}
run: |
set -o pipefail
${{ inputs.testCommand }} | sed -Ee "/[[:blank:]]*\([[:digit:]]{1,3} %\)[[:blank:]]*/d" | tee -a ${{ inputs.logFile }}
- name: Write report
shell: bash -l {0}