Refetch perf-libs when the release version is changed (#4706)

automerge
This commit is contained in:
Michael Vines 2019-06-17 14:31:41 -07:00 committed by Grimes
parent de3f7e9634
commit fe04fb4cd3
1 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,11 @@
#!/usr/bin/env bash
PERF_LIBS_VERSION=v0.13.2
set -e
cd "$(dirname "$0")"
if [[ ! -d target/perf-libs ]]; then
if [[ ! -f target/perf-libs/.$PERF_LIBS_VERSION ]]; then
if [[ $(uname) != Linux ]]; then
echo Performance libraries are only available for Linux
exit 1
@ -17,7 +20,8 @@ if [[ ! -d target/perf-libs ]]; then
(
set -x
cd target/perf-libs
curl https://solana-perf.s3.amazonaws.com/v0.13.2/x86_64-unknown-linux-gnu/solana-perf.tgz | tar zxvf -
curl https://solana-perf.s3.amazonaws.com/$PERF_LIBS_VERSION/x86_64-unknown-linux-gnu/solana-perf.tgz | tar zxvf -
touch .$PERF_LIBS_VERSION
)
fi