mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[ACTIONS] show last lines before error in BR2 build
This commit is contained in:
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@@ -50,9 +50,12 @@ jobs:
|
|||||||
sudo apt update && sudo apt install -y gsfonts
|
sudo apt update && sudo apt install -y gsfonts
|
||||||
make miyoo_uclibc_defconfig
|
make miyoo_uclibc_defconfig
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
make sdk CFW_HASH="${{ steps.cfwsha.outputs.cfwsha }}" 2>&1 \
|
if ! ( \
|
||||||
|tee build.log \
|
make sdk CFW_HASH="${{ steps.cfwsha.outputs.cfwsha }}" 2>&1 \
|
||||||
|grep ">>>"
|
| tee build.log \
|
||||||
|
| grep ">>>" \
|
||||||
|
); then tail -n100 build.log && exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Archive build logs (uClibc)
|
- name: Archive build logs (uClibc)
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
@@ -131,9 +134,12 @@ jobs:
|
|||||||
sudo apt update && sudo apt install -y gsfonts
|
sudo apt update && sudo apt install -y gsfonts
|
||||||
make miyoo_musl_defconfig
|
make miyoo_musl_defconfig
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
make sdk CFW_HASH="${{ steps.cfwsha.outputs.cfwsha }}" 2>&1 \
|
if ! ( \
|
||||||
|tee build.log \
|
make sdk CFW_HASH="${{ steps.cfwsha.outputs.cfwsha }}" 2>&1 \
|
||||||
|grep ">>>"
|
| tee build.log \
|
||||||
|
| grep ">>>" \
|
||||||
|
); then tail -n100 build.log && exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Archive build logs (musl)
|
- name: Archive build logs (musl)
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
@@ -204,9 +210,12 @@ jobs:
|
|||||||
cd ${{ inputs.submodule || '.' }}
|
cd ${{ inputs.submodule || '.' }}
|
||||||
make miyoo_uclibc_static_defconfig
|
make miyoo_uclibc_static_defconfig
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
make sdk 2>&1 \
|
if ! ( \
|
||||||
|tee build.log \
|
make sdk 2>&1 \
|
||||||
|grep ">>>"
|
| tee build.log \
|
||||||
|
| grep ">>>" \
|
||||||
|
); then tail -n100 build.log && exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Archive build logs (uClibc static)
|
- name: Archive build logs (uClibc static)
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
@@ -253,9 +262,12 @@ jobs:
|
|||||||
cd ${{ inputs.submodule || '.' }}
|
cd ${{ inputs.submodule || '.' }}
|
||||||
make miyoo_musl_static_defconfig
|
make miyoo_musl_static_defconfig
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
make sdk 2>&1 \
|
if ! ( \
|
||||||
|tee build.log \
|
make sdk 2>&1 \
|
||||||
|grep ">>>"
|
| tee build.log \
|
||||||
|
| grep ">>>" \
|
||||||
|
); then tail -n100 build.log && exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Archive build logs (musl static)
|
- name: Archive build logs (musl static)
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
|
Reference in New Issue
Block a user