Skip to content

Commit

Permalink
Add binary release script (#2235)
Browse files Browse the repository at this point in the history
scripts for binary release

Test Plan
------------
Download uploaded binary in a few popular linux vm and see if they works
  • Loading branch information
ailisp authored Mar 6, 2020
1 parent 909d10a commit fd6f478
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 29 deletions.
69 changes: 40 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions chain/telemetry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors = ["Near Inc <[email protected]>"]
edition = "2018"

[dependencies]
openssl = { version = "0.10", features = ["vendored"] }
actix-web = { version = "2.0.0", features = [ "openssl" ] }
futures = "0.3"
actix = "0.9.0"
Expand Down
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

0 comments on commit fd6f478

Please sign in to comment.