ci: consolidate builds into common build.sh shell script

* Maybe use make or some other fucking arcane shit so that people hate us.