-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add Arduino avrdude_packing github action for git man #1540
Conversation
I am not so sure if you like to see this one in the main avrdude project or not. Please comment. Thanks. |
@MCUdude, @stefanrueger and @dl8dtl The good thing about this is that we can provide static-linked avrdude binary for Linux, macOS. But I am not so sure if we want to support this or not. |
1) Change the name of the script 2) Not to run for pull-request, only run when push to git main
It seems to be correct now. The reason to run only on git push to git main and not for PR is that this build is a bit slow (using containers) compared to normal run. And the script is anyway not correct for PR. |
BTW, no rush for this PR. It is not essential as of now. |
If we can release statically linked binaries with every Avrdude release, that's a good thing for those who bundle Avrdude with other things, like with the Arduino cores I'm maintaining. Previously I had to wait three month for Arduino to release their 7.2 statically built binaries. However, we should recommend users to install though their package manager or build from source if possible. |
I have no real opinion on this and am happy to merge this provided we have the expertise in the team to debug problems of packaging. |
With this PR, we will be able to generate statically linked binaries with every push to git main.
Yes I agree. |
Yes that is the worry. I do not have the expertise myself. On the other hand, the code is pretty much the same as the following file maintained by @umbynos (just some minor simplification). The script depends on the container by Arduino crossbuild project, again maintained by @umbrynos. We will rely on the improvement of the container to add more functionalites sometimes (but not often, unless we add more dependancies like libserialport in the future). That is why I'd really like to hear the opinion from @umbynos. |
Please help here. Thanks.
|
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.
Hello,
Firstly, it would be an honor to see some of my work in the main avrdude repo.
Overall IMHO looks good, I've made some minor suggestions.
Previously I had to wait three month for Arduino to release their 7.2 statically built binaries.
I would like to be more responsive on this, but I'm not the one deciding priorities in Arduino... Integrating this would mean no waiting is required 😉
The only "problem" I see is this one:
The script depends on the container by Arduino crossbuild project, again maintained by @umbynos. We will rely on the improvement of the container to add more functionalites sometimes (but not often, unless we add more dependancies like libserialport in the future).
Of course improvements will be made, but I cannot make promises on the timeline... Of course libraries can be installed/compiled insiede the container at runtime, so I don't see that as a big problem. Overall I see this situation as an improvement
Co-authored-by: Umberto Baldi <[email protected]>
@umbynos sorry, that was not meant to sound like critique! I'm very grateful that you found some time to release 7.2 as statically linked binaries. I don't expect you or Arduino to always have time to spare when a new version of Avrdude gets released, but it has been very helpful in the past. But as you pointed out, if this PR gets merged, we (and other 3rd parties) can just use official statically linked binaries instead. |
Just to play safe, I have created a temporary branch here to test this out. It seems to work. I use the test branch to test and that is why it is upon push to the test_pr1540 branch. This test_pr1540 branch will be deleted later. @umbynos |
@umbynos |
I think this PR is ready to be merged. But we can wait for your next merge window. It is probably better to use "squash and merge" when you merge this PR. Thanks. |
I'm all for it, as it makes my job of maintaining 3rd part Arduino cores much easier when I want to bundle the latest Arduino version. However, we should give @dl8dtl time to share his thoughts as well. |
That is a good point. @dl8dtl |
Just another test to confirm that it is working, using the test_pr1540 branch (which will be deleted after this PR gets merged). |
I think this needs some review and changes to be correct.
This is a modified version of the following github action script from Arduino avrdude-packing project.
https://github.com/arduino/avrdude-packing/blob/main/.github/workflows/release.yml
I have used it for a while in my fork here.
https://github.com/mcuee/avrdude-packing
With the merge of PR #1539, no extra patches are needed to use the above script.