mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-14 04:19:22 +03:00
30 lines
462 B
Plaintext
30 lines
462 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
if [ -n "${TRAVIS_TAG-}" ]
|
||
|
then
|
||
|
ver="$TRAVIS_TAG"
|
||
|
elif [ -n "${TRAVIS_COMMIT-}" ]
|
||
|
then
|
||
|
ver="$TRAVIS_COMMIT"
|
||
|
else
|
||
|
ver="$(git rev-parse HEAD)"
|
||
|
fi
|
||
|
|
||
|
export STACK_YAML="`pwd`/pkg/hs/stack.yaml"
|
||
|
|
||
|
mkdir -p release
|
||
|
|
||
|
stack clean # Make sure we optimize
|
||
|
|
||
|
stack install king \
|
||
|
--local-bin-path "`pwd`/release" \
|
||
|
--test --no-run-tests
|
||
|
|
||
|
out="release/king-linux64-dynamic-$ver"
|
||
|
|
||
|
mv release/king "$out"
|
||
|
|
||
|
ldd "$out"
|