Skip to content
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

Release it as a binary on github #5

Open
m040601 opened this issue Jul 13, 2021 · 3 comments
Open

Release it as a binary on github #5

m040601 opened this issue Jul 13, 2021 · 3 comments

Comments

@m040601
Copy link

m040601 commented Jul 13, 2021

Not wanting to be to demanding but, any chance you could actualy release it as a binary on github ?

It's not practical for non developers to constantly download the half giga go distro and recompile go binaries.

Releasing a binary, just makes your tool available for someone who just wants to check it out quickly, compare it with others.

Not everyone has or wants the entire go distribution installed or as a simple user is familiar with compiling.Besides that releasing a binary, would make it easier for others to create a package for a Linux distro, based on the binary (ex. Ubuntu, Archlinux AUR).i

Do you know you can automate this for free with github actions ?

Check how other famous go tools do it, for example https://github.com/gokcehan/lf/tree/master/.github/workflows

Do you also know this tool, https://github.com/goreleaser/goreleaser ? https://goreleaser.com/ci/actions/ ?

Thanks in advance

@renard
Copy link
Owner

renard commented Jul 30, 2021

Thanks for the suggestion.

goreleaser seems promising however is does not handle correctly cross compilation with external libs (such as zbar) for now I didn't manage to make it work correctly neither for linux nor windows.

If you do have some experience with goreleaser any help is welcome.

TIA.

@m040601
Copy link
Author

m040601 commented Aug 1, 2021

If you do have some experience with goreleaser any help is welcome.

Unfortunately not. I'm not even a programmer or developer. I just noticed the tools other projects (big ones) are using.

Here is another one. He doesnt seem to be using goreleaser, I think. Only github actions. For testing ???

https://github.com/junegunn/fzf/tree/master/.github/workflows

Some more:

https://github.com/mvdan/github-actions-golang
https://reposhub.com/go/miscellaneous/mvdan-github-actions-golang.html

@renard
Copy link
Owner

renard commented Aug 4, 2021

For now the problem is not releasing the binaries but cross-compiling the code using CGO. As soon as I find a clean way to do that without using multiple environments, I will release the binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants