shrub/nix/ops/fakeship/builder.sh
benjamin-tlon ade1e59ce1
Get cross-compilation ready for release. (#1263)
* Add cross-compilation for `lmdb`.
* Got built caching working in CI with `cachix`.
* Cache cross compilation dependencies and toolchains.
* Do release builds in CI.
* Upload release builds to `bootstrap.urbit.org` on successful build.
* Lots of optimization work for CI.
* Boot from a solid pill in CI and load arvo with `-A`.
* Increase `vere` HTTP timeout to 15m.
2019-05-02 13:13:48 -07:00

22 lines
307 B
Bash
Executable File

source $stdenv/setup
set -ex
$URBIT -d -F $SHIP -A "$ARVO" -B "$PILL" $out
check () {
[ 3 -eq "$(herb $out -d 3)" ]
}
if check
then
echo "Boot success." >&2
herb $out -p hood -d '+hood/exit' || true
else
echo "Boot failure." >&2
kill $(< $out/.vere.lock) || true
exit 1
fi
set +x