kowainik / summoner

🔮 🔧 Tool for scaffolding batteries-included production-level Haskell projects
https://kowainik.github.io/projects/summoner
Mozilla Public License 2.0
694 stars 73 forks source link

Provide statically-linked Linux builds #534

Closed lierdakil closed 3 years ago

lierdakil commented 3 years ago

I've just run into this: got the binaries to play around and, nope, different library layout, can't run those. Perhaps providing statically-linked binaries would be a better option?

I've had some success producing static binaries with GitHub actions on Alpine with pandoc-crossref (see here). And summoner seems to produce a reasonable static build (did a quick test; 17M summon, 20M summon-tui; both around 3M xz-ipped)

Let me know if you need some help setting that up.

chshersh commented 3 years ago

We have experience providing static binaries for executables, and the new Summoner releases will have CI to generate those releases. The latest major Summoner release has a static executable.

It would be nice if the Haskell GitHub Action provided an easy way to generate statically-linked binaries, but there's no such way at the moment, though it's clear, how to do this with a bit of work.

vrom911 commented 3 years ago

Closed in favour of #537

lierdakil commented 3 years ago

@vrom911 GitHub Actions doesn't automagically make builds static, some setup is required, so I don't see how #537 subsumes this issue.