urob / zmk-config

Personal ZMK firmware configuration for various boards (34-keys, Corneish Zen, Planck)
635 stars 303 forks source link

Add multithreading when running locally #11

Closed ffnf closed 1 year ago

ffnf commented 1 year ago

I test a lot, so I need to build regularly. GitHub Actions take too long, so I choose to run it locally. However, after running it multiple times, I noticed that I can run it in multiple threads during the build process. Therefore, I added the option to enable multithreading when building locally.

Tested build 5 boards without multithreading takes approximately 50 seconds, while with multithreading, it takes around 15 seconds.

How to use

Run it by using the -m option.

It can only run locally, so the -l option must be included. Therefore, it should be -l -m

urob commented 1 year ago

Thanks! This looks really cool! Haven't had time yet to try it out. Will get back once I do.

urob commented 1 year ago

Thanks again for adding this! I tweaked it a bit more so that it also works with docker/podman builds, and committed it here https://github.com/urob/zmk-config/commit/4fbcfb1afabe066e0fd3ba7a209cd4c3cc846b76. Cool stuff!