From 3b039e3e49f5d8703c13e8b38b840966717a43ba Mon Sep 17 00:00:00 2001 From: TriplEight Date: Tue, 16 Jul 2019 01:47:21 +0200 Subject: [PATCH] WIP: Subkey release. (#3123) * should decide on publishing * build subkey for linux * small fixes * wrong dir --- substrate/.gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index 068404ae7e..36c4af21d4 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -242,6 +242,28 @@ build-linux-release: - cp -r scripts/docker/* ./artifacts - sccache -s +build-linux-subkey: + stage: build + <<: *collect-artifacts + <<: *docker-env + # <<: *build-only + except: + variables: + - $DEPLOY_TAG + script: + - cd ./subkey + - BUILD_DUMMY_WASM_BINARY=1 time cargo build --release --verbose + - cd .. + # - time cargo build --release + - sccache -s + - mkdir -p ./artifacts + - mv ./target/release/subkey ./artifacts/. + - echo -n "Subkey version = " + - ./artifacts/subkey --version | + sed -n -r 's/^subkey ([0-9.]+.*)/\1/p' | + tee ./artifacts/SUBKEY-VERSION; + - sha256sum ./artifacts/subkey | tee ./artifacts/subkey.sha256 + build-rust-doc-release: stage: build <<: *docker-env @@ -266,6 +288,7 @@ build-rust-doc-release: stage: publish dependencies: - build-linux-release + - build-linux-subkey <<: *build-only <<: *kubernetes-build @@ -324,6 +347,7 @@ publish-s3-release: - aws s3 ls s3://${BUCKET}/${PREFIX}/latest/ --recursive --human-readable --summarize + publish-s3-doc: stage: publish image: parity/awscli:latest