adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips
MIT License
432 stars 381 forks source link

Workflow-build fails with error code 2 while installing toolchains #265

Closed ebastler closed 2 years ago

ebastler commented 2 years ago

Operating System

Linux

INFO_UF2.TXT

None, issue happens when compiling the bootloader.

What happened ?

When compiling a bootloader with github actions the action fails with an error during toolchain installation. I will link my failed workflow run, as that will give more information than I could provide in text form: https://github.com/ebastler/Adafruit_nRF52_Bootloader/runs/6452117714

This is for my modified workflow, where I removed all boards but a custom one - exact same result occurs with the default workflow config and no changes.

How to reproduce ?

  1. Fork repository
  2. Run "build" workflow
  3. It will fail at "Install Toolchains"

Debug Log

No response

Screenshots

No response

hathach commented 2 years ago

issue is confirmed, seem like the ci build script need updated. Will fix this soon

ebastler commented 2 years ago

I just figured a workaround - changing this line from uses: actions/setup-node@v1 to uses: actions/setup-node@v3 makes it compile without issues.

https://github.com/ebastler/Adafruit_nRF52_Bootloader/blob/c0f7f7971dfc2976c438f757280277378ef1bdf9/.github/workflows/githubci.yml#L66

Not sure if that is a solution that will make it into the main repo, but I felt like sharing as a temporary fix.

hathach commented 2 years ago

thanks for the hint, yeah, I suspect we need to update some of action script version. It is probably the fix, it is better to do full re-vise and upgrade all other scripts as well.