mattytrentini / mpbuild

MicroPython build tool
MIT License
7 stars 3 forks source link

Add support for unix, webassembly and windows ports #13

Open mattytrentini opened 3 weeks ago

mattytrentini commented 3 weeks ago

The unix and webassembly ports are different since they don't have boards. They do, however, have variants - but they're listed differently, as a variants folder.

One way to handle this would be to use the port names as boards:

>mpbuild build unix
>mpbuild build webassembly pyscript
Josverl commented 3 weeks ago

Would love this, can you add a Windows build as well as that seems similar to the Unix and Webassembly builds

mattytrentini commented 3 weeks ago

I'd like to support Windows builds too, but that'll be a little more challenging since it won't work the same way with container builds. Still, may be possible...

Josverl commented 3 weeks ago

If it runs in GHA, it can run in a container, So it can be a standard dev container with a call to tools/ci.sh

https://github.com/micropython/micropython/blob/master/tools%2Fci.sh#L722-L735

mattytrentini commented 3 weeks ago

Oh yes, we can definitely cross-compile to Windows (using mingw) but can't easily support VS/msbuild on Windows itself.

Sure, will add support for that.