* Publish a tarball of solana release binaries * included native programs in Solana release tar * Remove PR check from publish script
This commit is contained in:
@ -11,3 +11,6 @@ steps:
|
|||||||
- command: "ci/publish-bpf-sdk.sh"
|
- command: "ci/publish-bpf-sdk.sh"
|
||||||
timeout_in_minutes: 5
|
timeout_in_minutes: 5
|
||||||
name: "publish bpf sdk"
|
name: "publish bpf sdk"
|
||||||
|
- command: "ci/publish-solana-tar.sh"
|
||||||
|
timeout_in_minutes: 15
|
||||||
|
name: "publish solana release tar"
|
||||||
|
57
ci/publish-solana-tar.sh
Executable file
57
ci/publish-solana-tar.sh
Executable file
@ -0,0 +1,57 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
DRYRUN=
|
||||||
|
if [[ -z $BUILDKITE_BRANCH ]]; then
|
||||||
|
DRYRUN="echo"
|
||||||
|
fi
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
if [[ -z $CHANNEL ]]; then
|
||||||
|
echo Unable to determine channel to publish into, exiting.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo --- Creating tarball
|
||||||
|
if [[ -z $DRYRUN ]]; then
|
||||||
|
(
|
||||||
|
set -x
|
||||||
|
rm -rf solana-release/
|
||||||
|
mkdir solana-release/
|
||||||
|
(
|
||||||
|
echo "$CHANNEL"
|
||||||
|
git rev-parse HEAD
|
||||||
|
) > solana-release/version.txt
|
||||||
|
|
||||||
|
cargo install --features=cuda --root solana-release
|
||||||
|
./scripts/install-native-programs.sh solana-release
|
||||||
|
|
||||||
|
tar jvcf solana-release.tar.bz2 solana-release/
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo --- AWS S3 Store
|
||||||
|
|
||||||
|
set -x
|
||||||
|
if [[ ! -r s3cmd-2.0.1/s3cmd ]]; then
|
||||||
|
rm -rf s3cmd-2.0.1.tar.gz s3cmd-2.0.1
|
||||||
|
$DRYRUN wget https://github.com/s3tools/s3cmd/releases/download/v2.0.1/s3cmd-2.0.1.tar.gz
|
||||||
|
$DRYRUN tar zxf s3cmd-2.0.1.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
|
$DRYRUN python ./s3cmd-2.0.1/s3cmd --acl-public put solana-release.tar.bz2 \
|
||||||
|
s3://solana-release/"$CHANNEL"/solana-release.tar.bz2
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
Reference in New Issue
Block a user