From 7701cfcf4f27f0d0793877b6f8e11a08223a986f Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Wed, 13 Jun 2018 13:14:15 +0200 Subject: [PATCH] scripts: restore archives used in gitlab artifacts --- scripts/gitlab-build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/gitlab-build.sh b/scripts/gitlab-build.sh index 7a31a457d..db219abb1 100755 --- a/scripts/gitlab-build.sh +++ b/scripts/gitlab-build.sh @@ -112,6 +112,12 @@ push_binaries () { aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/whisper$S3WIN.sha256 --body whisper$S3WIN.sha256 } +make_archive () { + echo "add artifacts to archive" + rm -rf parity.zip + zip -r parity.zip target/$PLATFORM/release/parity$S3WIN target/$PLATFORM/release/parity-evm$S3WIN target/$PLATFORM/release/ethstore$S3WIN target/$PLATFORM/release/ethkey$S3WIN target/$PLATFORM/release/whisper$S3WIN parity$S3WIN.sha256 parity-evm$S3WIN.sha256 ethstore$S3WIN.sha256 ethkey$S3WIN.sha256 whisper$S3WIN.sha256 +} + updater_push_release () { echo "push release" @@ -130,6 +136,7 @@ case $BUILD_PLATFORM in build strip_binaries calculate_checksums + make_archive push_binaries updater_push_release ;; @@ -139,6 +146,7 @@ case $BUILD_PLATFORM in build strip_binaries calculate_checksums + make_archive push_binaries ;; armv7-unknown-linux-gnueabihf) @@ -147,6 +155,7 @@ case $BUILD_PLATFORM in build strip_binaries calculate_checksums + make_archive push_binaries ;; arm-unknown-linux-gnueabihf) @@ -155,6 +164,7 @@ case $BUILD_PLATFORM in build strip_binaries calculate_checksums + make_archive push_binaries ;; aarch64-unknown-linux-gnu) @@ -163,6 +173,7 @@ case $BUILD_PLATFORM in build strip_binaries calculate_checksums + make_archive push_binaries ;; x86_64-apple-darwin) @@ -171,6 +182,7 @@ case $BUILD_PLATFORM in build strip_binaries calculate_checksums + make_archive push_binaries updater_push_release ;; @@ -212,6 +224,7 @@ case $BUILD_PLATFORM in build sign_exe calculate_checksums + make_archive push_binaries updater_push_release esac