From 21a740882f5f92408c23080d222d83636c06e010 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Sun, 15 Oct 2023 10:46:58 +0200 Subject: [PATCH] CI: Zephyr build: Be less verbose * Do not run the tar extract verbose, as that generated ~50.000 lines of output slowing down things and generating a huge log. * Reduce the progress output of wget to only print one dot every megabyte, instead of every kilobyte reducing a lot the log output. Signed-off-by: Alberto Escolar Piedras --- .github/actions/build_ci/entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/build_ci/entrypoint.sh b/.github/actions/build_ci/entrypoint.sh index 0c476775..a1a84d5c 100755 --- a/.github/actions/build_ci/entrypoint.sh +++ b/.github/actions/build_ci/entrypoint.sh @@ -56,7 +56,7 @@ build_freertos(){ build_zephyr(){ echo " Build for Zephyr OS " sudo apt-get install -y git cmake ninja-build gperf || exit 1 - sudo apt-get install -y ccache dfu-util device-tree-compiler wget || exit 1 + sudo apt-get install -y ccache dfu-util device-tree-compiler wget pv || exit 1 sudo apt-get install -y python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file || exit 1 sudo apt-get install -y make gcc gcc-multilib g++-multilib libsdl2-dev || exit 1 sudo apt-get install -y libc6-dev-i386 gperf g++ python3-ply python3-yaml device-tree-compiler ncurses-dev uglifyjs -qq || exit 1 @@ -65,8 +65,8 @@ build_zephyr(){ echo 'export PATH=~/.local/bin:"$PATH"' >> ~/.bashrc source ~/.bashrc - wget $ZEPHYR_SDK_DOWNLOAD_URL || exit 1 - tar xvf $ZEPHYR_SDK_SETUP_TAR || exit 1 + wget $ZEPHYR_SDK_DOWNLOAD_URL --dot-style=giga || exit 1 + pv $ZEPHYR_SDK_SETUP_TAR -i 2 | tar xJ || exit 1 rm -rf $ZEPHYR_SDK_INSTALL_DIR || exit 1 yes | ./$ZEPHYR_SDK_SETUP_DIR/setup.sh || exit 1 west init ./zephyrproject || exit 1