zbg
zbg copied to clipboard
Provide statically linked executables via GitHub Actions releases
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
this would be great. following with interest.
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!
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 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.
For future reference, here is the WIP patch. :crossed_fingers: once Core is updated, wrapping-up should be pretty swift.