* Improve gen shell scripts
* Remove unused gen/doc.sh
* Fix generated version in docs
* Make OCI program usage transparent
podman/docker/* as well as root(less) mode is detected automatically.
Formatted with 4 space indentation, added Vim modeline for convenience.
* Rename gen/doc{-with-docker,}.sh
Since the script is no longer docker-specific, it's better to drop the
more specific name.
* Add Vim modeline to build.sh and xbuild.sh
* Create CI job to run `gen/xbuild.sh`, adjust `xbuild.sh` to make it possible
This reworks the gen/xbuild.sh script to exit with a failure if any of the targets don't compile. It also adds a CI job to try cross-compiling for every platform on every pull request.
The new check is a little slow and compute-expensive, but I am hoping it's well within the quota.
See #1299 for a demo of how the CI would have failed after #1288 and before #1295.
Screenshot: https://github.com/gokcehan/lf/assets/4123047/3d7a6b7c-8642-4d4c-a98a-c8b886c0b184
Thanks to @joelim-work for numerous improvements and an alternate
implementation I heavily borrowed from
(https://github.com/joelim-work/lf/blob/ci/gen/xbuild.sh)
* Refactor xbuild.sh some more to decrease repetition
I can remove this commit if people prefer.
* Generate darwin-arm64 binaries as we have users using it
Arm Macs are becoming popular. We have at least one
user: https://github.com/gokcehan/lf/issues/1294. It
seems lf works fine there.