zmk icon indicating copy to clipboard operation
zmk copied to clipboard

build: add support for local config builds via act

Open nidomiro opened this issue 4 months ago • 3 comments

This change enables local execution of the gh-action to build the keyboard firmware in a config-repo via act.

Linux example command:

act --artifact-server-path $PWD/.artifacts

macOS (M2) example command:

act --artifact-server-path $PWD/.artifacts \
--container-architecture \
linux/amd64 --container-daemon-socket -

PR check-list

  • [x] Branch has a clean commit history
  • [x] Additional tests are included, if changing behaviors/core code that is testable.
  • [x] Proper Copyright + License headers added to applicable files (Generally, we stick to "The ZMK Contributors" for copyrights to help avoid churn when files get edited)
  • [x] Pre-commit used to check formatting of files, commit messages, etc.
  • [ ] Includes any necessary documentation changes.

nidomiro avatar Dec 01 '25 14:12 nidomiro

Seems reasonable, but can you please provide a link to a user config repo run using this version of the workflow to demonstrate no impact to running in GHA? Thanks!

petejohanson avatar Dec 10 '25 08:12 petejohanson

Sure: https://github.com/nidomiro/zmk-config But it uses a cloned version of the action. Not the branch of the PR. I copied it over to my repo. Should I update the action to use the PR first?

nidomiro avatar Dec 10 '25 08:12 nidomiro

I reference the action file in my repo now, here is the run: https://github.com/nidomiro/zmk-config/actions/runs/20093058775/job/57644776884

nidomiro avatar Dec 10 '25 09:12 nidomiro