juspay / omnix

🚧 A Nix wrapper to improve developer experience
https://omnix.page
GNU Affero General Public License v3.0
68 stars 5 forks source link

Static binary for `omnix-cli` #149

Closed srid closed 1 month ago

srid commented 1 month ago

With om being a static binary it can even introspect (https://github.com/juspay/nix-health/issues/6) and do Nix install for the user.

Static binary status:

srid commented 1 month ago

Another benefit of providing static binary: we don't have to provide a binary cache for this repo.

srid commented 1 month ago

A static binary would also help reduce CI times for installing omnix on GitHub Actions,

https://github.com/srid/haskell-template/actions/runs/10115656001/job/27976909384?pr=136

Just by reducing closure size.

srid commented 1 month ago

https://github.com/srid/haskell-template/pull/137

40 seconds to install on Ubuntu,

image

50 seconds to install on macOS,

image

https://github.com/srid/haskell-template/actions/runs/10222457925/job/28287081748

shivaraj-bh commented 1 month ago

What was the time before on macOS?

For Linux you mentioned it was 3 minutes (source: https://github.com/juspay/omnix/pull/158#issuecomment-2253251466).

srid commented 1 month ago

3 minutes for both:

https://github.com/srid/haskell-template/actions/runs/10115744844/job/27977180380

So it is an improvement overall.

Once we have curl'able install, it should reduce further I hope.