-
Notifications
You must be signed in to change notification settings - Fork 134
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
build binaries on Actions #469
Conversation
eyyyy! He's back (as promised). That's cool ❤️
Also, there was one entry in the Makefile for Alpine that didn't get deleted. Was it missed, or should it stay in the Makefile for some reason? |
Yeah sorry, I decided to put all relevant information to the issue only to not have to repeat myself all over in the two PRs.
My idea was to keep the Makefile for local development and I only removed "release related" stuff. So I left the alpine target in there on intention, as it has the additional "-extldflags=-static" flag. |
Ah yes, of course. One other thing is that the action shouldn't be triggered on push. I'm just shooting this as a quick message, but can make the change later this eve. And have just seen when updating the branch, that the linux builds failed (as the action ran on push). I haven't looked into why. But will also do so, unless there's an update from your side here. Thanks again, this is such a massive workflow optimisation! |
I wasn‘t exactly sure on the triggers, so I left it as it is and open for discussion. Please go ahead and adjust them as you want. I think a nightly build and build on push of a tag would be sufficient. |
I'm thinking. Would it be fine to replace the upload-artefact step with action-gh-release and upload directly to the release? Or is it better to have a separate workflow for this / add the binaries to the release manually?.. I'm not so versed with this area of github / CI. Like this as an initial proof of concept: https://github.com/zk-org/zk/blob/actions-release/.github/workflows/release.yml |
We could create a release on push of a tag, otherwise upload artifacts. That way a nightly or manual build would be possible and triggering a release would be just a matter of pushing a tag. |
@jurica How does that look? I wanted to get the version output from build-binaries to use in release action, so as to reuse variables and not risk mismatches. So I figured to replace the steps in each build job too. I hope that works. Otherwise should be easily revertable. Tried to make the git commits clean for this. |
@tjex look cool, but please check my comments. I tried the single git describe approach as well, but it would need a little more effort to make it work (I squashed my ~40 commits before opening the PR). |
@jurica Ok. That should all be implemented. One comment is still unresolved |
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.
So, lets see!
Working :) https://github.com/zk-org/zk/actions/runs/12073672963/workflow Two of the linux builds takes ages though! Funny that the alpine build takes the longest 🤷 |
Very nice, I like how that turned out. Thanks for your help and review! Yeah the arm build for linux run on x86 machines and are emulated with qemu. So they are quite slow. |
ahhh ok. Makes sense re the arm build. |
No description provided.