mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 16:21:02 +00:00
Add build substrate and subkey binaries for MacOS (#5538)
This commit is contained in:
committed by
GitHub
parent
0ca88bbb18
commit
c0daa9a47c
+20
-12
@@ -138,9 +138,6 @@ check-line-width:
|
|||||||
interruptible: true
|
interruptible: true
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
check-polkadot-companion-build:
|
check-polkadot-companion-build:
|
||||||
stage: build
|
stage: build
|
||||||
<<: *docker-env
|
<<: *docker-env
|
||||||
@@ -149,7 +146,6 @@ check-polkadot-companion-build:
|
|||||||
interruptible: true
|
interruptible: true
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
|
|
||||||
cargo-audit:
|
cargo-audit:
|
||||||
stage: test
|
stage: test
|
||||||
<<: *docker-env
|
<<: *docker-env
|
||||||
@@ -181,7 +177,6 @@ cargo-check-benches:
|
|||||||
- BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly check --benches --all
|
- BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly check --benches --all
|
||||||
- sccache -s
|
- sccache -s
|
||||||
|
|
||||||
|
|
||||||
cargo-check-subkey:
|
cargo-check-subkey:
|
||||||
stage: test
|
stage: test
|
||||||
<<: *docker-env
|
<<: *docker-env
|
||||||
@@ -192,7 +187,6 @@ cargo-check-subkey:
|
|||||||
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
|
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
|
||||||
- sccache -s
|
- sccache -s
|
||||||
|
|
||||||
|
|
||||||
test-linux-stable: &test-linux
|
test-linux-stable: &test-linux
|
||||||
stage: test
|
stage: test
|
||||||
<<: *docker-env
|
<<: *docker-env
|
||||||
@@ -361,6 +355,14 @@ test-full-crypto-feature:
|
|||||||
- time cargo +nightly build --verbose --no-default-features --features full_crypto
|
- time cargo +nightly build --verbose --no-default-features --features full_crypto
|
||||||
- sccache -s
|
- 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
|
#### stage: build
|
||||||
|
|
||||||
@@ -391,16 +393,16 @@ build-linux-substrate: &build-binary
|
|||||||
echo "${CI_COMMIT_TAG}" | tee ./artifacts/substrate/VERSION;
|
echo "${CI_COMMIT_TAG}" | tee ./artifacts/substrate/VERSION;
|
||||||
else
|
else
|
||||||
./artifacts/substrate/substrate --version |
|
./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;
|
tee ./artifacts/substrate/VERSION;
|
||||||
fi
|
fi
|
||||||
- sha256sum ./artifacts/substrate/substrate | tee ./artifacts/substrate/substrate.sha256
|
- sha256sum ./artifacts/substrate/substrate | tee ./artifacts/substrate/substrate.sha256
|
||||||
- printf '\n# building node-template\n\n'
|
- printf '\n# building node-template\n\n'
|
||||||
- ./.maintain/node-template-release.sh ./artifacts/substrate/substrate-node-template.tar.gz
|
- ./.maintain/node-template-release.sh ./artifacts/substrate/substrate-node-template.tar.gz
|
||||||
- cp -r .maintain/docker/substrate.Dockerfile ./artifacts/substrate/
|
|
||||||
- sccache -s
|
- sccache -s
|
||||||
|
|
||||||
build-linux-subkey:
|
|
||||||
|
build-linux-subkey: &build-subkey
|
||||||
<<: *build-binary
|
<<: *build-binary
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p ./artifacts/subkey
|
- mkdir -p ./artifacts/subkey
|
||||||
@@ -411,12 +413,19 @@ build-linux-subkey:
|
|||||||
- mv ./target/release/subkey ./artifacts/subkey/.
|
- mv ./target/release/subkey ./artifacts/subkey/.
|
||||||
- echo -n "Subkey version = "
|
- echo -n "Subkey version = "
|
||||||
- ./artifacts/subkey/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;
|
tee ./artifacts/subkey/VERSION;
|
||||||
- sha256sum ./artifacts/subkey/subkey | tee ./artifacts/subkey/subkey.sha256
|
- sha256sum ./artifacts/subkey/subkey | tee ./artifacts/subkey/subkey.sha256
|
||||||
- cp -r .maintain/docker/subkey.Dockerfile ./artifacts/subkey/
|
|
||||||
- sccache -s
|
- 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:
|
build-rust-doc-release:
|
||||||
stage: build
|
stage: build
|
||||||
<<: *docker-env
|
<<: *docker-env
|
||||||
@@ -445,7 +454,6 @@ check-polkadot-companion-status:
|
|||||||
- ./.maintain/gitlab/check_polkadot_companion_status.sh
|
- ./.maintain/gitlab/check_polkadot_companion_status.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
trigger-contracts-ci:
|
trigger-contracts-ci:
|
||||||
stage: publish
|
stage: publish
|
||||||
needs:
|
needs:
|
||||||
|
|||||||
Reference in New Issue
Block a user