-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/add west config path to workflow #107
Conversation
Thanks for spending the time to figure this out. I have a few of things in mind to make this a bit faster and more seamless:
I can look into above myself building upon your work, or if you want to tackle them yourself you are welcome to, as well. |
It was fun figuring out how things worked while getting used to my new keyboard :) I had also considered some of your points, all together i personally think "messing" with the zmk/west config is not worth it, as the entire workflow (with active cache) still only takes 1 minute. Usually you are flashing your board anyway at that time. Automatically enabling a west init based on modules in One thing i also considered, instead of passing the |
Having slept on this, I might be overthinking and overgeneralizing this. In practice the modules will want to be parsed only for very few cases, right now I can only think of zmk-helpers. So yeah, maybe not having things automated and optimized is fine -- this can be documented in the project (I am thinking of utilizing the wiki for some scenarios like this one and So the current state of this looks good for that. But I'll take a day or two to mull on it :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small tweaks.
Co-authored-by: Cem Aksoylar <[email protected]>
Co-authored-by: Cem Aksoylar <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Follow up of (and requires): #105
Took a bit of trial and error, but we got there.
Adds a
west_config_path
input to the draw workflow. If specified it will initialise and update west. If not specified, it has no affect. Thus also not slowing down any workflows.Example of an uninitialised failed workflow: https://github.com/stijnveenman/zmk-config/actions/runs/9847346357/job/27187112733#step:9:71
Example of a initialised successful workflow: https://github.com/stijnveenman/zmk-config/actions/runs/9847355106/job/27187141109
With the following settings:
draw.yml
draw-config.yaml