WORKFLOW: add --line-buffered to grep (#137)

This commit is contained in:
tiopex
2024-11-16 09:46:01 +01:00
committed by GitHub
parent 4a6229b40a
commit 0f3be0177e

View File

@@ -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 }}" \ 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 \ APPEND_VERSION="-Dev_build$(echo ${{ github.ref_name != 'master' && github.ref_name || '' }} | sed 's/\//-/g' | sed '/./ s/^/-/')" 2>&1 \
| tee build.log \ | tee build.log \
| grep ">>>" \ | grep --line-buffered "^>>>" \
); then tail -n100 build.log && exit 1 ); then tail -n100 build.log && exit 1
fi 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 }}" \ 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 \ APPEND_VERSION="-Dev_build$(echo ${{ github.ref_name != 'master' && github.ref_name || '' }} | sed 's/\//-/g' | sed '/./ s/^/-/')" 2>&1 \
| tee build.log \ | tee build.log \
| grep ">>>" \ | grep --line-buffered "^>>>" \
); then tail -n100 build.log && exit 1 ); then tail -n100 build.log && exit 1
fi fi
@@ -231,7 +231,7 @@ jobs:
if ! ( \ if ! ( \
make -j $CPU_N sdk 2>&1 \ make -j $CPU_N sdk 2>&1 \
| tee build.log \ | tee build.log \
| grep ">>>" \ | grep --line-buffered "^>>>" \
); then tail -n100 build.log && exit 1 ); then tail -n100 build.log && exit 1
fi fi
@@ -284,7 +284,7 @@ jobs:
if ! ( \ if ! ( \
make -j $CPU_N sdk 2>&1 \ make -j $CPU_N sdk 2>&1 \
| tee build.log \ | tee build.log \
| grep ">>>" \ | grep --line-buffered "^>>>" \
); then tail -n100 build.log && exit 1 ); then tail -n100 build.log && exit 1
fi fi