Skip to content

ci: add reusable user-config workflow#1183

Merged
petejohanson merged 8 commits intozmkfirmware:mainfrom
elagil:add_reusable_user_config_workflow
Apr 19, 2022
Merged

ci: add reusable user-config workflow#1183
petejohanson merged 8 commits intozmkfirmware:mainfrom
elagil:add_reusable_user_config_workflow

Conversation

@elagil
Copy link
Copy Markdown
Contributor

@elagil elagil commented Mar 22, 2022

Closes #1178

@elagil elagil changed the title Add reusable user-config workflow ci: add reusable user-config workflow Mar 22, 2022
@elagil
Copy link
Copy Markdown
Contributor Author

elagil commented Mar 23, 2022

I added some input fields and tested my job again: https://github.com/elagil/ZMK-keyboards/actions/runs/2024498175
Looks like it works as expected.

@joelspadin You may also test with your desired alternative inputs, using my branch like here.

@elagil
Copy link
Copy Markdown
Contributor Author

elagil commented Mar 23, 2022

Some force-pushing for adhering to conventional commit messages.

Copy link
Copy Markdown
Contributor

@petejohanson petejohanson left a comment

Choose a reason for hiding this comment

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

Thanks! A few comments.

Copy link
Copy Markdown
Contributor

@filterpaper filterpaper left a comment

Choose a reason for hiding this comment

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

This was discussed with @petejohanson on Discord—GH actions was reusing old caches from Zephyr 2.5 on 3.0 when the hash for user's west.yml remained unchanged. These proposed changes will trigger cache-misses with Zephyr version update.

@elagil
Copy link
Copy Markdown
Contributor Author

elagil commented Apr 3, 2022

All suggestions were incorporated, please check if I missed something.

@elagil elagil requested a review from petejohanson April 3, 2022 16:59
Copy link
Copy Markdown
Contributor

@petejohanson petejohanson left a comment

Choose a reason for hiding this comment

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

On a whole, looks god. Just one question/comment on the cache key.

@elagil elagil requested a review from petejohanson April 5, 2022 06:30
Co-authored-by: Albert Y <76888457+filterpaper@users.noreply.github.com>
@elagil
Copy link
Copy Markdown
Contributor Author

elagil commented Apr 18, 2022

@petejohanson Do you have any further suggestions?

Copy link
Copy Markdown
Contributor

@petejohanson petejohanson left a comment

Choose a reason for hiding this comment

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

Ran wonderfully over at https://github.com/petejohanson/testing-3-0-update-zmk-config/runs/6069419685?check_suite_focus=true

No more concerns, this will definitely help us iterate on this, add enhancements like the work from @dxmh in zmkfirmware/unified-zmk-config-template#2 into one spot, and have it propagate to config repos automatically. Thanks!

@petejohanson petejohanson merged commit 3ff8014 into zmkfirmware:main Apr 19, 2022
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.

[Suggestion] Reuse Github CI definition for zmk_config repositories

4 participants