From 0f3be0177eb8e32f4bd36094b5643b4ce19c197f Mon Sep 17 00:00:00 2001 From: tiopex <67048640+tiopex@users.noreply.github.com> Date: Sat, 16 Nov 2024 09:46:01 +0100 Subject: [PATCH] WORKFLOW: add --line-buffered to grep (#137) --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa421b71..c0913367 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,7 +62,7 @@ jobs: CFW_HASH="${{ steps.cfwsha.outputs.cfw_sha }}" CFW_TAG="${{ steps.cfwsha.outputs.cfw_tag }}" CFW_ITERATION="${{ steps.cfwsha.outputs.cfw_iteration }}" \ APPEND_VERSION="-Dev_build$(echo ${{ github.ref_name != 'master' && github.ref_name || '' }} | sed 's/\//-/g' | sed '/./ s/^/-/')" 2>&1 \ | tee build.log \ - | grep ">>>" \ + | grep --line-buffered "^>>>" \ ); then tail -n100 build.log && exit 1 fi @@ -154,7 +154,7 @@ jobs: CFW_HASH="${{ steps.cfwsha.outputs.cfw_sha }}" CFW_TAG="${{ steps.cfwsha.outputs.cfw_tag }}" CFW_ITERATION="${{ steps.cfwsha.outputs.cfw_iteration }}" \ APPEND_VERSION="-Dev_build$(echo ${{ github.ref_name != 'master' && github.ref_name || '' }} | sed 's/\//-/g' | sed '/./ s/^/-/')" 2>&1 \ | tee build.log \ - | grep ">>>" \ + | grep --line-buffered "^>>>" \ ); then tail -n100 build.log && exit 1 fi @@ -231,7 +231,7 @@ jobs: if ! ( \ make -j $CPU_N sdk 2>&1 \ | tee build.log \ - | grep ">>>" \ + | grep --line-buffered "^>>>" \ ); then tail -n100 build.log && exit 1 fi @@ -284,7 +284,7 @@ jobs: if ! ( \ make -j $CPU_N sdk 2>&1 \ | tee build.log \ - | grep ">>>" \ + | grep --line-buffered "^>>>" \ ); then tail -n100 build.log && exit 1 fi