Skip to content
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

feat(build): Allow specifying snippets for a build. #2224

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

petejohanson
Copy link
Contributor

You can see this in action in https://github.com/petejohanson/le-capybara-zmk-config/actions/runs/8412145898 which enables an extra EC calibration utility using a snippet there.

@petejohanson petejohanson self-assigned this Mar 24, 2024
@petejohanson petejohanson requested a review from a team as a code owner March 24, 2024 23:02
Copy link
Collaborator

@joelspadin joelspadin left a comment

Choose a reason for hiding this comment

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

This is a bit inconsistent with how we pass shields. It seems weird to me that you would need to write

- board: nice_nano_v2
  shield: corne_left nice_view_adapter nice_view

to use multiple shields, but

- board: nice_nano_v2
  snippets: [snippet1, snippet2, snippet3]

to use multiple snippets

@@ -59,12 +59,16 @@ jobs:
run: |
echo "build_dir=$(mktemp -d)" >> $GITHUB_ENV

- name: Install yaml2json
run: apt-get update && apt-get install -y jq python3-pip && python3 -m pip install remarshal
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't match the step with the same name on line 38. Should those match?

Also, would https://github.com/actions/setup-python be better for making sure pip is installed?

@petejohanson
Copy link
Contributor Author

After some discussion and discovery, simplified things a ton, and here's a successful build with the new simpler approach: https://github.com/petejohanson/le-capybara-zmk-config/actions/runs/8413180471/job/23035032995

@petejohanson petejohanson merged commit 94c3b9a into zmkfirmware:main Mar 25, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants