-
Notifications
You must be signed in to change notification settings - Fork 126
Workflow for avr build #405
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
base: master
Are you sure you want to change the base?
Workflow for avr build #405
Conversation
…; also removed hard-coded firmware version macros in the Desktop Interface and the firmware
|
Copying from a previous draft of this PR: Posted by @mi-hol
|
|
@brentfpage I triggered re-run of all workflows after merging #404 but they still fail |
I just added AVR_VER as a repo-wide variable here (harmless and reversible) , which should make the mac build work. The other builds with automated firmware packaging have not been implemented. |
|
As an aside, the firmware that's currently configured to be packaged is that from the most recent "continuous release" in my fork. This practice will be necessary unless/until this PR is fully merged into the genuine repo and a continuous release is run that generates firmware files. |
Well I re-ran and it still failed :(
Please add these changes, test, change status to "ready for review" and we'll review again after that has happened. |
|
Unfortunately I had missed this key point: The PR is still a draft (only one workflow has been implemented), so I'll hold off on indicating that it's "Ready for review". |
(Following up on some of the discussion in #381.)
This PR:
The versioning is centralized, but not automatic. Namely, the current version of the firmware has to be set in a repository-wide variable, AVR_VER, under (repo home)->settings->secrets+variables->actions->variables->(repository variables). In the fork, AVR_VER=0x0007. At compile time, this variable gets injected:
It would be nicer to have AVR_VER defined in some location like continuous.yml instead, but it needs to be available to mac.yml when that workflow is called individually. I don't know of any other place to define AVR_VER where it would be available to both workflows.
Also, the inclusion of the version number in the .hex file names has been retained, so they are, e.g., labrafirm_0007_0{1 or 2}.hex. To me, this is worthwhile because then the firmware that's packaged into a given release can be very easily determined.
If we decide to go forward with this approach, extending it to encompass the android, linux, and windows builds I think would be straightforward. Also, a prerequisite for merging would be #404 .