From 43d9895cafa636fd686da2dac09130d536c6fdf9 Mon Sep 17 00:00:00 2001 From: Raphael Defosseux <raphael.defosseux@eurecom.fr> Date: Wed, 18 Oct 2023 15:08:19 +0200 Subject: [PATCH] fix(ci): in case of build failure, having a bit of debug info Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr> --- docker/Dockerfile.build.ubuntu20.cross-arm64 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.build.ubuntu20.cross-arm64 b/docker/Dockerfile.build.ubuntu20.cross-arm64 index b5f770a485f..c278bf66bed 100644 --- a/docker/Dockerfile.build.ubuntu20.cross-arm64 +++ b/docker/Dockerfile.build.ubuntu20.cross-arm64 @@ -43,5 +43,10 @@ RUN /bin/sh oaienv && \ cd ../build-cross/ && \ cmake ../../.. -GNinja -DCMAKE_TOOLCHAIN_FILE=../../../cmake_targets/cross-arm.cmake -DNATIVE_DIR=../build && \ echo "====== Start of log for cross-build executables ======" && \ - ninja dlsim ulsim ldpctest polartest smallblocktest nr_pbchsim nr_dlschsim nr_ulschsim nr_dlsim nr_ulsim nr_pucchsim nr_prachsim lte-softmodem nr-softmodem nr-cuup oairu lte-uesoftmodem nr-uesoftmodem params_libconfig coding rfsimulator > ../../log/all.txt 2>&1 && \ + # making always passing so we can analyze the all.txt file + ninja dlsim ulsim ldpctest polartest smallblocktest nr_pbchsim nr_dlschsim nr_ulschsim nr_dlsim nr_ulsim nr_pucchsim nr_prachsim lte-softmodem nr-softmodem nr-cuup oairu lte-uesoftmodem nr-uesoftmodem params_libconfig coding rfsimulator > ../../log/all.txt 2>&1; \ + # displaying errors and warnings + egrep -A3 "warning:|error:" ../../log/all.txt || true && \ + # will fail only for errors + egrep -L "error:" ../../log/all.txt && \ echo "====== End of log for cross-build executables ======" -- GitLab