OpenJBOD / software

MIT License
30 stars 2 forks source link

Rework the Actions CI #11

Closed TheGuyDanish closed 1 month ago

TheGuyDanish commented 1 month ago

The new actions run still "build" the software into a zip package that can be uploaded to an OpenJBOD RP2040 board, however it will also build MicroPython with OpenJBOD built in via freezefs. This simplifies deploying and updating the firmware significantly.

Breaking down how this works:

The OpenJBOD software is cloned into the directory at build-time and forzen into a single python file using freezefs. The file will automatically extract itself to / on execution, unpacking all the necessary files. The frozen package is imported by the _boot.py script that runs when MicroPython is first initialized. This means the files are overwritten on every boot. Note that config.json is excluded from this.