Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binary release script #2235

Merged
merged 4 commits into from
Mar 6, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions scripts/binary-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -euo pipefail

branch=${BUILDKITE_BRANCH}
commit=${BUILDKITE_COMMIT}
os=$(uname)

cargo build -p near --release
cargo build -p keypair-generator --release
cargo build -p genesis-csv-to-json --release

aws s3 cp --acl public-read target/release/near s3://build.nearprotocol.com/nearcore/${os}/${branch}/near
aws s3 cp --acl public-read target/release/near s3://build.nearprotocol.com/nearcore/${os}/${branch}/${commit}/near
aws s3 cp --acl public-read target/release/keypair-generator s3://build.nearprotocol.com/nearcore/${os}/${branch}/keypair-generator
aws s3 cp --acl public-read target/release/keypair-generator s3://build.nearprotocol.com/nearcore/${os}/${branch}/${commit}/keypair-generator
aws s3 cp --acl public-read target/release/genesis-csv-to-json s3://build.nearprotocol.com/nearcore/${os}/${branch}/genesis-csv-to-json
aws s3 cp --acl public-read target/release/genesis-csv-to-json s3://build.nearprotocol.com/nearcore/${os}/${branch}/${commit}/genesis-csv-to-json