mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 12:44:42 +00:00
29 lines
852 B
Bash
29 lines
852 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -x -e
|
||
|
|
||
|
# Update tzdata to the latest version. It is embedded into clickhouse binary.
|
||
|
sudo apt-get update && sudo apt-get install tzdata
|
||
|
|
||
|
ccache --show-stats ||:
|
||
|
ccache --zero-stats ||:
|
||
|
build/release --no-pbuilder $ALIEN_PKGS | ts '%Y-%m-%d %H:%M:%S'
|
||
|
mv /*.deb /output
|
||
|
mv *.changes /output
|
||
|
mv *.buildinfo /output
|
||
|
mv /*.rpm /output ||: # if exists
|
||
|
mv /*.tgz /output ||: # if exists
|
||
|
|
||
|
if [ -n "$BINARY_OUTPUT" ] && { [ "$BINARY_OUTPUT" = "programs" ] || [ "$BINARY_OUTPUT" = "tests" ] ;}
|
||
|
then
|
||
|
echo Place $BINARY_OUTPUT to output
|
||
|
mkdir /output/binary ||: # if exists
|
||
|
mv /build/obj-*/programs/clickhouse* /output/binary
|
||
|
if [ "$BINARY_OUTPUT" = "tests" ]
|
||
|
then
|
||
|
mv /build/obj-*/src/unit_tests_dbms /output/binary
|
||
|
fi
|
||
|
fi
|
||
|
ccache --show-stats ||:
|
||
|
ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0 /usr/lib/libOpenCL.so ||:
|