bee2cb8fb4
* version: bump parity beta to 2.1.4 * ethcore: bump ropsten forkblock checkpoint (#9775) * ethcore: handle vm exception when estimating gas (#9615) * removed "rustup" & added new runner tag (#9731) * removed "rustup" & added new runner tag * exchanged tag "rust-windows" with "windows" * revert windows tag change * sync: retry different peer after empty subchain heads response (#9753) * If no subchain heads then try a different peer * Add log when useless chain head * Restrict ChainHead useless peer to ancient blocks * sync: replace `limit_reorg` with `block_set` condition * update jsonrpc-core to a1b2bb742ce16d1168669ffb13ffe856e8131228 * Allow zero chain id in EIP155 signing process (#9792) * Allow zero chain id in EIP155 signing process * Rename test * Fix test failure * Insert dev account before unlocking (#9813)
49 lines
2.1 KiB
Bash
Executable File
49 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e # fail on any error
|
|
set -u # treat unset variables as error
|
|
|
|
set INCLUDE="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include;C:\vs2015\VC\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt"
|
|
set LIB="C:\vs2015\VC\lib;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64"
|
|
|
|
echo "__________Show ENVIROMENT__________"
|
|
echo "CI_SERVER_NAME: " $CI_SERVER_NAME
|
|
echo "CARGO_HOME: " $CARGO_HOME
|
|
echo "BUILD_TARGET: " $BUILD_TARGET
|
|
echo "BUILD_ARCH: " $BUILD_ARCH
|
|
echo "CARGO_TARGET: " $CARGO_TARGET
|
|
|
|
echo "_____ Building target: "$CARGO_TARGET" _____"
|
|
time cargo build --target $CARGO_TARGET --release --features final
|
|
time cargo build --target $CARGO_TARGET --release -p evmbin
|
|
time cargo build --target $CARGO_TARGET --release -p ethstore-cli
|
|
time cargo build --target $CARGO_TARGET --release -p ethkey-cli
|
|
time cargo build --target $CARGO_TARGET --release -p whisper-cli
|
|
|
|
echo "__________Sign binaries__________"
|
|
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/parity.exe
|
|
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/parity-evm.exe
|
|
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/ethstore.exe
|
|
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/ethkey.exe
|
|
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/whisper.exe
|
|
|
|
echo "_____ Post-processing binaries _____"
|
|
rm -rf artifacts
|
|
mkdir -p artifacts
|
|
cd artifacts
|
|
mkdir -p $CARGO_TARGET
|
|
cd $CARGO_TARGET
|
|
cp --verbose ../../target/$CARGO_TARGET/release/parity.exe ./parity.exe
|
|
cp --verbose ../../target/$CARGO_TARGET/release/parity-evm.exe ./parity-evm.exe
|
|
cp --verbose ../../target/$CARGO_TARGET/release/ethstore.exe ./ethstore.exe
|
|
cp --verbose ../../target/$CARGO_TARGET/release/ethkey.exe ./ethkey.exe
|
|
cp --verbose ../../target/$CARGO_TARGET/release/whisper.exe ./whisper.exe
|
|
|
|
echo "_____ Calculating checksums _____"
|
|
for binary in $(ls)
|
|
do
|
|
rhash --sha256 $binary -o $binary.sha256
|
|
./parity.exe tools hash $binary > $binary.sha3
|
|
done
|
|
cp parity.exe.sha256 parity.sha256
|
|
cp parity.exe.sha3 parity.sha3
|