aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/tools.yml
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2022-08-22 15:05:01 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2022-12-04 17:36:55 +0100
commita69b9a8962226f48590ee5ea063d66da912b9036 (patch)
tree54a19279b82aa6f91adc9e326281803b0d1f650e /.github/workflows/tools.yml
parentf2fb3ffd712dd35eca1f979c6852c6ccf7a88333 (diff)
downloadupstream-a69b9a8962226f48590ee5ea063d66da912b9036.tar.gz
upstream-a69b9a8962226f48590ee5ea063d66da912b9036.tar.bz2
upstream-a69b9a8962226f48590ee5ea063d66da912b9036.zip
ci: show build failures directly in job log output
Instead of waiting for complete workflow finish, then downloading the artifacts, unpacking them and inspecting them, lets try to make the build failure immediately visible in the log output: ====== Make errors from logs/target/linux/compile.txt ====== * Legacy (non-UHI/non-FIT) Boards * Support MIPS SEAD-3 boards (LEGACY_BOARD_SEAD3) [N/y/?] (NEW) Error in reading or end of file. make[6]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1 make[5]: *** [Makefile:616: syncconfig] Error 2 make[4]: *** [Makefile:736: include/config/auto.conf.cmd] Error 2 make[3]: *** [Makefile:24: build_dir/target-mipsel-openwrt-linux-musl_musl/linux-ramips_mt7620/linux-5.15.62/.modules] Error 2 make[2]: *** [Makefile:11: compile] Error 2 time: target/linux/compile#30.09#11.30#37.92 Signed-off-by: Petr Štetiar <ynezz@true.cz> (cherry picked from commit f4ca4187cde01a3e412f10657bec0790d3a4cd94)
Diffstat (limited to '.github/workflows/tools.yml')
-rw-r--r--.github/workflows/tools.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml
index 4e423fdd62..b97f0599e2 100644
--- a/.github/workflows/tools.yml
+++ b/.github/workflows/tools.yml
@@ -123,7 +123,7 @@ jobs:
- name: Build tools
run: |
cd "$WORKPATH"
- make tools/install -j$(nproc) BUILD_LOG=1
+ make tools/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
- name: Move logs to GITHUB_WORKSPACE
if: always()