Publish BPF SDK to a channel-specific URL to ease downstream pickup
This commit is contained in:
parent
9fe210c454
commit
9bf2d1d7b4
|
@ -4,6 +4,15 @@ set -e
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
version=$(./ci/crate-version.sh)
|
version=$(./ci/crate-version.sh)
|
||||||
|
eval "$(ci/channel-info.sh)"
|
||||||
|
|
||||||
|
if [[ $BUILDKITE_BRANCH = "$STABLE_CHANNEL" ]]; then
|
||||||
|
CHANNEL=stable
|
||||||
|
elif [[ $BUILDKITE_BRANCH = "$EDGE_CHANNEL" ]]; then
|
||||||
|
CHANNEL=edge
|
||||||
|
elif [[ $BUILDKITE_BRANCH = "$BETA_CHANNEL" ]]; then
|
||||||
|
CHANNEL=beta
|
||||||
|
fi
|
||||||
|
|
||||||
echo --- Creating tarball
|
echo --- Creating tarball
|
||||||
(
|
(
|
||||||
|
@ -22,16 +31,21 @@ echo --- Creating tarball
|
||||||
|
|
||||||
|
|
||||||
echo --- AWS S3 Store
|
echo --- AWS S3 Store
|
||||||
|
if [[ -z $CHANNEL ]]; then
|
||||||
set -x
|
echo Skipped
|
||||||
if [[ ! -r s3cmd-2.0.1/s3cmd ]]; then
|
else
|
||||||
|
(
|
||||||
|
set -x
|
||||||
|
if [[ ! -r s3cmd-2.0.1/s3cmd ]]; then
|
||||||
rm -rf s3cmd-2.0.1.tar.gz s3cmd-2.0.1
|
rm -rf s3cmd-2.0.1.tar.gz s3cmd-2.0.1
|
||||||
wget https://github.com/s3tools/s3cmd/releases/download/v2.0.1/s3cmd-2.0.1.tar.gz
|
wget https://github.com/s3tools/s3cmd/releases/download/v2.0.1/s3cmd-2.0.1.tar.gz
|
||||||
tar zxf s3cmd-2.0.1.tar.gz
|
tar zxf s3cmd-2.0.1.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python ./s3cmd-2.0.1/s3cmd --acl-public put bpf-sdk.tar.bz2 \
|
python ./s3cmd-2.0.1/s3cmd --acl-public put bpf-sdk.tar.bz2 \
|
||||||
s3://solana-sdk/"$version"/bpf-sdk.tar.bz2
|
s3://solana-sdk/"$CHANNEL"/bpf-sdk.tar.bz2
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue