mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
ade1e59ce1
* 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.
34 lines
592 B
Bash
Executable File
34 lines
592 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
fail () {
|
|
echo "$@"
|
|
exit 1
|
|
}
|
|
|
|
if [ -z "$CACHIX_SIGNING_KEY" ]
|
|
then fail "The CACHIX_AUTH_TOKEN environment variable needs to be set."
|
|
fi
|
|
|
|
if [ -z "$CACHIX_AUTH_TOKEN" ]
|
|
then fail "The CACHIX_AUTH_TOKEN environment variable needs to be set."
|
|
fi
|
|
|
|
cleanup () {
|
|
rm -f .cache.list
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
set -ex
|
|
|
|
cachix authtoken "$CACHIX_AUTH_TOKEN" >/dev/null
|
|
cachix use urbit2
|
|
|
|
nix-build --no-out-link \
|
|
--max-jobs 2 \
|
|
nix/cachix/local.nix \
|
|
nix/cachix/release.nix \
|
|
> .cache.list
|
|
|
|
cachix push urbit2 < .cache.list
|