Skip to content

Commit

Permalink
[ACTIONS] show last lines before error in BR2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Apaczer committed Nov 14, 2023
1 parent 89d8621 commit e353d2a
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ jobs:
sudo apt update && sudo apt install -y gsfonts
make miyoo_uclibc_defconfig
set -o pipefail
make sdk CFW_HASH="${{ steps.cfwsha.outputs.cfwsha }}" 2>&1 \
|tee build.log \
|grep ">>>"
if ! ( \
make sdk CFW_HASH="${{ steps.cfwsha.outputs.cfwsha }}" 2>&1 \
| tee build.log \
| grep ">>>" \
); then tail -n100 build.log && exit 1
fi
- name: Archive build logs (uClibc)
if: success() || failure()
Expand Down Expand Up @@ -131,9 +134,12 @@ jobs:
sudo apt update && sudo apt install -y gsfonts
make miyoo_musl_defconfig
set -o pipefail
make sdk CFW_HASH="${{ steps.cfwsha.outputs.cfwsha }}" 2>&1 \
|tee build.log \
|grep ">>>"
if ! ( \
make sdk CFW_HASH="${{ steps.cfwsha.outputs.cfwsha }}" 2>&1 \
| tee build.log \
| grep ">>>" \
); then tail -n100 build.log && exit 1
fi
- name: Archive build logs (musl)
if: success() || failure()
Expand Down Expand Up @@ -204,9 +210,12 @@ jobs:
cd ${{ inputs.submodule || '.' }}
make miyoo_uclibc_static_defconfig
set -o pipefail
make sdk 2>&1 \
|tee build.log \
|grep ">>>"
if ! ( \
make sdk 2>&1 \
| tee build.log \
| grep ">>>" \
); then tail -n100 build.log && exit 1
fi
- name: Archive build logs (uClibc static)
if: success() || failure()
Expand Down Expand Up @@ -253,9 +262,12 @@ jobs:
cd ${{ inputs.submodule || '.' }}
make miyoo_musl_static_defconfig
set -o pipefail
make sdk 2>&1 \
|tee build.log \
|grep ">>>"
if ! ( \
make sdk 2>&1 \
| tee build.log \
| grep ">>>" \
); then tail -n100 build.log && exit 1
fi
- name: Archive build logs (musl static)
if: success() || failure()
Expand Down

0 comments on commit e353d2a

Please sign in to comment.