bacon icon indicating copy to clipboard operation
bacon copied to clipboard

Publish binaries to github releases

Open Rigellute opened this issue 1 year ago • 8 comments

Thank you for this tool!

Are you interested in publishing prebuilt binaries to github releases? If so, I could potentially help setup the github actions to build binaries when you push a git tag.

Rigellute avatar Jul 21 '23 13:07 Rigellute

that doesn't look very useful for a tool that should be installed with cargo anyway.

Stargateur avatar Jul 21 '23 13:07 Stargateur

Bacon is one of the few programs for which I don't provide binaries, because any potential user has a rust compiler and is more at ease with using cargo install than downloading binaries.

I'll reconsider if some user tells me he would need precompiled binaries and explains why.

Canop avatar Jul 21 '23 13:07 Canop

My use-case is that I mostly use cargo binstall these days to avoid building from source or manually installing binaries. But totally understand if it's not a priority for this project.

Rigellute avatar Jul 21 '23 13:07 Rigellute

@Rigellute This makes sense. I didn't knew binstall.

Canop avatar Jul 21 '23 13:07 Canop

Is there a free solution for generating mac binaries in github actions ?

Canop avatar Jul 21 '23 14:07 Canop

open source project can run github action on mac for free, I don't know any limit but I guess github set some, so I expect you could just compile it using a mac os in the github action. For private reposition there is this doc https://docs.github.com/en/billing/managing-billing-for-github-actions/managing-your-spending-limit-for-github-actions about minute count but as I said it should be fine for public repo as long as it's fair use.

Stargateur avatar Jul 21 '23 19:07 Stargateur

Yes, github actions will be free for this project.

If you want to try this yourself, I recommend using cargo-dist, which massively streamlines all the steps of providing prebuilt binaries for a rust project

Rigellute avatar Jul 25 '23 08:07 Rigellute

A problem I have with pushing tags to create binaries in GitHub is that it gets messy, like many GitHub actions, because you push the tag, wait half an hour for it to be finished, see that it failed, try some changes at random, etc.

And I know by experience that cross compiling fails a lot, especially in Rust.

Canop avatar Sep 15 '23 15:09 Canop