mirror of
https://github.com/urbit/shrub.git
synced 2024-12-30 15:44:03 +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.
23 lines
436 B
Bash
Executable File
23 lines
436 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
case $# in
|
|
0) ship=zod; target=./zod;;
|
|
1) ship=$1; target=./$1;;
|
|
2) ship=$1; target=$2;;
|
|
*) echo "Usage: $0 [ship] [target-dir]" >&2
|
|
exit 1;;
|
|
esac
|
|
|
|
if [ -e "$target" ]
|
|
then echo "Target directory '$target' already exists." >&2
|
|
exit 1
|
|
fi
|
|
|
|
pkg=$(nix-build nix/ops/boot-ship.nix --arg ship "\"$ship\"" --no-out-link)
|
|
|
|
mkdir -p "$(dirname "$target")"
|
|
cp -r $pkg/ $target
|
|
chmod -R u+rw $target
|