KMKfw / kmk_firmware

Clackety Keyboards Powered by Python
https://kmkfw.zulipchat.com
Other
1.38k stars 474 forks source link

build zip of .mpy files with GitHub Action, resolve #270 #800

Closed rrotter closed 1 year ago

rrotter commented 1 year ago

This is a fairly trivial GH Action that automatically runs make compile and uploads the zip (for an example of what this looks like, see Artifacts here). As configured this will only run on merge/push to the master branch. Only supports CircuitPython 8, would be easy to add other versions if need be.

This was requested in #270.

xs5871 commented 1 year ago

Couple of questions:

rrotter commented 1 year ago

Latest force push cleans up the naming of the Action, the naming of the zip (uses short sha and not the full sha), and caches mpy-cross as mentioned above.

leiserfg commented 1 year ago
  • That would be tricky. The action only has the current commit checked out, no view into the history.

It's not so complicated, just use https://github.com/tj-actions/changed-files