CircuitPython_Community_Bundle
CircuitPython_Community_Bundle copied to clipboard
Packaging problems
As diagnosed/solved on discord earlier today (you can thank my rf"..."
later 😉)
With the current configuration of actions, if the "compilation" to .mpy
fails, the zip is not generated and circup
will get broken.
On this very situation it was due to me using a feature that mpy-cross
does not support (raw fstring), which caused the process to error out. However i wouldnt be surprised if a fail somewhere else in the pipeline also causes this kind of problem.
Probably the easier and best solution is to do some fallback logic as in:
try:
latest_zip = run_pipeline()
except:
latest_zip = previous_one
But since i have no idea about GHA (nor perms to do anything) i'm simply noting this so it doesnt get forgotten far in the chat's history