zbg icon indicating copy to clipboard operation
zbg copied to clipboard

Provide statically linked executables via GitHub Actions releases

Open chshersh opened this issue 2 years ago • 5 comments

Relevant links:

  • https://ocamlpro.com/blog/2021_09_02_generating_static_and_portable_executables_with_ocaml/
  • https://discuss.ocaml.org/t/generating-static-and-portable-executables-with-ocaml/8405

chshersh avatar Apr 06 '23 11:04 chshersh

this would be great. following with interest.

btbytes avatar Dec 19 '23 16:12 btbytes

If it can help, I have published a blogpost on this subject, and you can have a look at this script if you are interested on how I build artifacts for Spatial Shell. I also have a very basic Github Action setup.

Hope it helps!

lthms avatar Jan 03 '24 23:01 lthms

Alright, I gave it a try: looks like you will have to wait for core.0.17.0 for reasons (basically you need this patch in core_unix if I’m not mistaken).

lthms avatar Jan 04 '24 06:01 lthms

@lthms Wow, this is super helpful! Thanks for writing a blog post on this 🧡

I'm in no rush to implement this, I'd rather want to make the process smooth and easy. So I'll wait for the patch in core_unix to land.

I don't think it's easy to get rid of this dependency so decrease the dependencies footprint and minimise the risks of getting blocked in the future.

chshersh avatar Jan 04 '24 20:01 chshersh

For future reference, here is the WIP patch. :crossed_fingers: once Core is updated, wrapping-up should be pretty swift.

lthms avatar Jan 04 '24 23:01 lthms