491f17f149
* bump stable 2.1.6 * ethcore: use Machine::verify_transaction on parent block (#9900) * ethcore: use Machine::verify_transaction on parent block also fixes off-by-one activation of transaction permission contract * ethcore: clarify call to verify_transaction * fix: Intermittent failing CI due to addr in use (#9885) Allow OS to set port at runtime * gitlab-ci: make android release build succeed (#9743) * use docker cargo config file for android builds * make android build succeed * Update light-client hardcoded headers for foundation: #6692865, ropsten: #4417537, kovan: #9363457 * Remove rust-toolchain file (#9906) * light-fetch: Differentiate between out-of-gas/manual throw and use required gas from response on failure (#9824) * fix start_gas, handle OOG exceptions & NotEnoughGas * Change START_GAS: 50_000 -> 60_000 * When the `OutOfGas exception` is received then try to double the gas until it succeeds or block gas limit is reached * When `NotEnoughBasGas error` is received then use the required gas provided in the response * fix(light-fetch): ensure block_gas_limit is tried Try the `block_gas_limit` before regard the execution as an error * Update rpc/src/v1/helpers/light_fetch.rs Co-Authored-By: niklasad1 <niklasadolfsson1@gmail.com> * fix #9824 merge artifacts * simplify cargo audit * ci: nuke the gitlab caches (#9855)
47 lines
2.0 KiB
Bash
Executable File
47 lines
2.0 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 "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
|