d30610621f
* version: bump beta * fix Sha3/keccak256 hash calculation for binaries (#10509) https://github.com/paritytech/parity-ethereum/issues/10495 * verbose flag for cpp tests (#10524) * Initial support sccache for windows build (#10520) * Initial support sccache for win build * show sccache stats * cache paths for shared runners * sccache status is in the script. * removed windows test for now * ethcore: remove eth social and easthub chain configs (#10531) * Fix max_gas (#10537) Fix max_gas * build android with cache, win fixes (#10546) * build android with cache! * windows fixes * windows fixes 2 * windows fixes 3 * windows fixes 4 * windows should have sccache variables in env variables * Update light client harcoded headers (#10547) * kovan #10643457 * ropsten #5296129 * foundation #7460865 * classic #7747585 * indentation * morden #3973121
52 lines
2.1 KiB
Bash
Executable File
52 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"
|
|
sccache -s
|
|
|
|
echo "__________Show ENVIROMENT__________"
|
|
echo "CI_SERVER_NAME: " $CI_SERVER_NAME
|
|
echo "CARGO_HOME: " $CARGO_HOME
|
|
echo "CARGO_TARGET: " $CARGO_TARGET
|
|
echo "RUSTC_WRAPPER: " $RUSTC_WRAPPER
|
|
echo "SCCACHE_DIR: " $SCCACHE_DIR
|
|
|
|
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
|
|
|
|
sccache -s
|