-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ci(build): add support for board-only builds #464
ci(build): add support for board-only builds #464
Conversation
Lays the groundwork for CI building boards that don't require shields. PR: zmkfirmware#464
a8d1a41
to
9e00a67
Compare
Lays the groundwork for CI building boards that don't require shields. PR: zmkfirmware#464
9e00a67
to
c2da73b
Compare
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.
Just one question.
.github/workflows/build.yml
Outdated
if [ -n "${{ matrix.shield }}" ]; then | ||
SHIELD="-DSHIELD=${{ matrix.shield }}" | ||
fi | ||
echo ::set-output name=shield::${SHIELD} |
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.
Thoughts on using something more generic, to allow other build steps to optionally add other defines?
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.
Yeah, that's a good question and that's actually what I did for zmk-docker
's workflow (which is more refined).
I suspect in this case I was just powering through and didn't take a step back before pushing.
I can see the merits so I'll refactor it and re-push.
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.
That seems to have done the trick. This build (a PR which will build off this one) demonstrates the result:
https://github.com/zmkfirmware/zmk/runs/1501689317
Lays the groundwork for CI building boards that don't require shields. PR: zmkfirmware#464
f3746a9
to
5aafeee
Compare
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.
Yeah, dig it!
Lays the groundwork for CI building boards that don't require shields. PR: zmkfirmware#464
Lays the groundwork for CI building boards that don't require shields. PR: zmkfirmware#464
Lays the groundwork for CI building boards that don't require shields.
Tested using
dz60rgb_rev1
board. See https://github.com/innovaker/zmk/actions/runs/397136358 for results.