From 1ce15ed110ef714160c628db8110363017614998 Mon Sep 17 00:00:00 2001 From: Umberto Baldi Date: Thu, 17 Feb 2022 15:57:38 +0100 Subject: [PATCH] better organize the print output Co-authored-by: per1234 --- .github/workflows/release.yml | 4 ++++ build.sh | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 760ddde..5ef9e08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -144,6 +144,10 @@ jobs: working-directory: ${{ github.workspace }}/mcuboot/scripts run: docker run -v "$(pwd)":/workspace ${{ matrix.docker_image }} ./workspace/imgtool/build.sh + - name: Smoke test build + working-directory: ${{ github.workspace }}/mcuboot/scripts + run: docker run -v "$(pwd)":/workspace ${{ matrix.docker_image }} ./workspace/dist/imgtool + - name: Package working-directory: ${{ github.workspace }}/mcuboot/scripts/${{ env.DIST_DIR }} run: sudo tar -cz -C ./ ${{ env.PROJECT_NAME }} -C ${{ github.workspace }}/imgtool-packing/ LICENSE.txt -f ${{ env.PROJECT_NAME }}_${GITHUB_REF/refs\/tags\//}_${{ matrix.package_platform }}.tar.gz #dist dir is created in the container with different user/grp diff --git a/build.sh b/build.sh index 3e8ee9b..5c16eb3 100755 --- a/build.sh +++ b/build.sh @@ -6,4 +6,22 @@ python -m pip install --upgrade pip setuptools wheel cd workspace/ pip install -r requirements.txt pip install pyinstaller==4.2 +echo " +--- +Available PyInstaller bootloaders:" +ls /usr/local/lib/python3.7/site-packages/PyInstaller/bootloader/ +echo " +--- +Kernel architecture name:" +uname -m +echo " +---" pyinstaller --onefile main.py -n imgtool +echo " +--- +File information for build output:" +file dist/imgtool +echo " +--- +Library dependencies for build output:" +ldd dist/imgtool