Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Add build substrate and subkey binaries for MacOS (#5538)
Browse files Browse the repository at this point in the history
  • Loading branch information
General-Beck authored Apr 29, 2020
1 parent 2056678 commit 6d2ce02
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ check-line-width:
interruptible: true
allow_failure: true




check-polkadot-companion-build:
stage: build
<<: *docker-env
Expand All @@ -149,7 +146,6 @@ check-polkadot-companion-build:
interruptible: true
allow_failure: true


cargo-audit:
stage: test
<<: *docker-env
Expand Down Expand Up @@ -181,7 +177,6 @@ cargo-check-benches:
- BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly check --benches --all
- sccache -s


cargo-check-subkey:
stage: test
<<: *docker-env
Expand All @@ -192,7 +187,6 @@ cargo-check-subkey:
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
- sccache -s


test-linux-stable: &test-linux
stage: test
<<: *docker-env
Expand Down Expand Up @@ -361,6 +355,14 @@ test-full-crypto-feature:
- time cargo +nightly build --verbose --no-default-features --features full_crypto
- sccache -s

cargo-check-macos:
stage: test
<<: *docker-env
script:
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
- sccache -s
tags:
- osx

#### stage: build

Expand Down Expand Up @@ -391,32 +393,39 @@ build-linux-substrate: &build-binary
echo "${CI_COMMIT_TAG}" | tee ./artifacts/substrate/VERSION;
else
./artifacts/substrate/substrate --version |
sed -n -r 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
sed -n -E 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
tee ./artifacts/substrate/VERSION;
fi
- sha256sum ./artifacts/substrate/substrate | tee ./artifacts/substrate/substrate.sha256
- printf '\n# building node-template\n\n'
- ./.maintain/node-template-release.sh ./artifacts/substrate/substrate-node-template.tar.gz
- cp -r .maintain/docker/substrate.Dockerfile ./artifacts/substrate/
- sccache -s


build-linux-subkey:
build-linux-subkey: &build-subkey
<<: *build-binary
before_script:
- mkdir -p ./artifacts/subkey
script:
- cd ./bin/utils/subkey
- cd ./bin/utils/subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo build --release --verbose
- cd -
- mv ./target/release/subkey ./artifacts/subkey/.
- echo -n "Subkey version = "
- ./artifacts/subkey/subkey --version |
sed -n -r 's/^subkey ([0-9.]+.*)/\1/p' |
sed -n -E 's/^subkey ([0-9.]+.*)/\1/p' |
tee ./artifacts/subkey/VERSION;
- sha256sum ./artifacts/subkey/subkey | tee ./artifacts/subkey/subkey.sha256
- cp -r .maintain/docker/subkey.Dockerfile ./artifacts/subkey/
- sccache -s

build-macos-subkey:
<<: *build-subkey
only:
- master
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
tags:
- osx

build-rust-doc-release:
stage: build
<<: *docker-env
Expand Down Expand Up @@ -445,7 +454,6 @@ check-polkadot-companion-status:
- ./.maintain/gitlab/check_polkadot_companion_status.sh



trigger-contracts-ci:
stage: publish
needs:
Expand Down

0 comments on commit 6d2ce02

Please sign in to comment.