Switch version file from .txt to .yaml; add target tuple to version.yml

This commit is contained in:
Michael Vines
2019-03-13 16:11:50 -07:00
parent 7685ba2805
commit fa1ea1c458
2 changed files with 23 additions and 5 deletions

View File

@@ -30,10 +30,25 @@ echo --- Creating tarball
set -x
rm -rf solana-release/
mkdir solana-release/
case "$(uname)" in
Darwin)
TARGET=x86_64-apple-darwin
;;
Linux)
TARGET=x86_64-unknown-linux-gnu
;;
*)
TARGET=unknown-unknown-unknown
;;
esac
COMMIT="$(git rev-parse HEAD)"
(
echo "$CHANNEL_OR_TAG"
git rev-parse HEAD
) > solana-release/version.txt
echo "channel: $CHANNEL"
echo "commit: $COMMIT"
echo "target: $TARGET"
) > solana-release/version.yml
source ci/rust-version.sh stable
scripts/cargo-install-all.sh +"$rust_stable" solana-release