Skip to content

Commit

Permalink
better organize the print output
Browse files Browse the repository at this point in the history
Co-authored-by: per1234 <[email protected]>
  • Loading branch information
umbynos and per1234 committed Feb 17, 2022
1 parent 584c2ab commit 1ce15ed
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1ce15ed

Please sign in to comment.