Skip to content

Fixing CI build#534

Closed
T0RAT0RA wants to merge 1 commit intoInfiniTimeOrg:masterfrom
T0RAT0RA:fixing-ci-build
Closed

Fixing CI build#534
T0RAT0RA wants to merge 1 commit intoInfiniTimeOrg:masterfrom
T0RAT0RA:fixing-ci-build

Conversation

@T0RAT0RA
Copy link

I just got my PineTime dev kit and wanted to experiment with custom firmware. I wanted to take advantage of the GitHub workflow to build, but it seems broken on master.
image

This PR is fixing all the issues.

I tested the output file pinetime-mcuboot-app-dfu.zip with OTA firmware update with my dev kit.
image

Fix glob pattern
Fix missing submodule code
- name: Install Embedded Arm Toolchain arm-none-eabi-gcc
if: steps.cache-toolchain.outputs.cache-hit != 'true' # Install toolchain if not found in cache
uses: fiam/arm-none-eabi-gcc@v1.0.2
uses: fiam/arm-none-eabi-gcc@v1.0.4
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes this error in the build:
image

See fiam/arm-none-eabi-gcc#9

run: |
cd ${{ runner.temp }}
git clone --branch v1.5.0 https://github.com/JuulLabs-OSS/mcuboot
git clone --branch v1.7.2 https://github.com/JuulLabs-OSS/mcuboot
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the following:
image

Comment on lines +102 to +103
with:
submodules: 'true'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the following:
image

(missing submodules)

# The generated firmware binary looks like "pinetime-mcuboot-app-0.8.2.bin"
ls -l build/src/pinetime-mcuboot-app*.bin
${{ runner.temp }}/mcuboot/scripts/imgtool.py create --align 4 --version 1.0.0 --header-size 32 --slot-size 475136 --pad-header build/src/pinetime-mcuboot-app*.bin build/src/pinetime-mcuboot-app-img.bin
${{ runner.temp }}/mcuboot/scripts/imgtool.py create --align 4 --version 1.0.0 --header-size 32 --slot-size 475136 --pad-header build/src/pinetime-mcuboot-app-[0-9]*.bin build/src/pinetime-mcuboot-app-img.bin
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes:
image

The new glob pattern excludes pinetime-mcuboot-app-image-1.3.0.bin so there is only one input file to pass to the create command.

@JF002
Copy link
Collaborator

JF002 commented Jul 29, 2021

Thanks for this PR!
However, there are already multiples PR that addresses this issue (I grouped them in the CI project and I would like to focus on #333 as it adds an interesting feature.
Would you like to have a look at that PR and help review it?

@JF002 JF002 added the ci label Jul 29, 2021
@T0RAT0RA
Copy link
Author

Thanks for this PR!
However, there are already multiples PR that addresses this issue (I grouped them in the CI project and I would like to focus on #333 as it adds an interesting feature.
Would you like to have a look at that PR and help review it?

Yes, I'll propose my changes in #333 then.

@T0RAT0RA T0RAT0RA closed this Jul 29, 2021
@T0RAT0RA T0RAT0RA deleted the fixing-ci-build branch March 25, 2022 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants