Skip to content

Justfile updates#144

Open
cfergeau wants to merge 7 commits intourob:mainfrom
cfergeau:justfile
Open

Justfile updates#144
cfergeau wants to merge 7 commits intourob:mainfrom
cfergeau:justfile

Conversation

@cfergeau
Copy link
Copy Markdown

While working on a different project (https://github.com/keebs34/zmk-config-selenium), I needed to add a few features to the Justfile I picked from this repo.

Since they are generic, I’m proposing them for inclusion:

  • just: Add --matrix-file arg to list and build
  • just: Add comment about python-yq VS golang-yq
  • just: Handle cmake-args in matrix file
  • just: Strip board variant when generating artifact name

This will allow to use the `Justfile` with both `build.yaml` and
`tests.yaml`

Signed-off-by: Christophe Fergeau <christophe@fergeau.eu>
I tried using the golang one and was perplexed why `combinations` caused
errors. Switching to the python one solved all these problems.

Signed-off-by: Christophe Fergeau <christophe@fergeau.eu>
ZMK `build.yaml` files can have a `cmake-args` field to specify
additional CMake arguments to use during the build.
This commit adds support for that.

For readability, cmake-args is not shown in `just list`

Signed-off-by: Christophe Fergeau <christophe@fergeau.eu>
With zmk main, the board names are suffixed with a variant such as
`adv360pro_left//zmk`.
Keeping the `//zmk` in the artifact name causes confusion as it’s a
path separator, so the `Justfile` would try to copy the final firmware
to `firmware/adv360pro_left//zmk/ while it only created the `firmware`
directory.

This commit strips everything after the first `/` in the board name when
generating the artifact name.

Signed-off-by: Christophe Fergeau <christophe@fergeau.eu>
Copy link
Copy Markdown
Owner

@urob urob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to submit the changes. A few small nitpicking suggestions below, but conceptually that all makes sense!

Comment thread Justfile Outdated
Comment thread Justfile Outdated
Comment thread Justfile Outdated
@cfergeau
Copy link
Copy Markdown
Author

cfergeau commented Apr 15, 2026

Thanks for taking the time to submit the changes. A few small nitpicking suggestions below, but conceptually that all makes sense!

I’ve added fixup commits with your suggestions, if you prefer that I directly amend the original commits and force-push, let me know, I’ll do it, and I’ll adjust the commit logs at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants