shrub/sh/release
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

24 lines
367 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -n "${TRAVIS_TAG-}" ]
then
ver="$TRAVIS_TAG"
elif [ -n "${TRAVIS_COMMIT-}" ]
then
ver="$TRAVIS_COMMIT"
else
ver="$(git rev-parse HEAD)"
fi
mkdir -p release
for plat in linux64 darwin
do
sh/cross urbit "$plat"
echo "packaging release/urbit-$plat-$ver.tgz"
(cd cross/$plat; tar cz .) > release/urbit-$plat-$ver.tgz
done