bd3bc5c168
* Updating the CI system with the publication of releases and binary files on github Signed-off-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com> * add missed scripts * chmod +x scripts * fix download link for github * rebuilding CI scripts * small fixes * update submodule wasm tests * ci: fix merge leftovers * ci: remove gitlab-next from ci triggers * ci: fix git add in docs script * ci: use nightly instead of master for publish triggers * ci: remove sleep from gitlab config * ci: replace ':' with '-' in gitlab targets * ci: fix recursive copy in docs script
36 lines
1.0 KiB
Bash
Executable File
36 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e # fail on any error
|
|
set -u # treat unset variables as error
|
|
echo "__________Show ENVIROMENT__________"
|
|
echo "CC: " $CC
|
|
echo "CXX: " $CXX
|
|
|
|
echo "__________CARGO CONFIG__________"
|
|
rm -rf .cargo
|
|
mkdir -p .cargo
|
|
echo "[target.$CARGO_TARGET]" >> .cargo/config
|
|
echo "linker= \"$CC\"" >> .cargo/config
|
|
cat .cargo/config
|
|
|
|
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 "_____ Post-processing binaries _____"
|
|
rm -rf artifacts
|
|
mkdir -p artifacts
|
|
cd artifacts
|
|
mkdir -p $CARGO_TARGET
|
|
cd $CARGO_TARGET
|
|
cp ../../target/$CARGO_TARGET/release/{parity,parity-evm,ethstore,ethkey,whisper} .
|
|
strip -v ./*
|
|
echo "_____ Calculating checksums _____"
|
|
for binary in $(ls)
|
|
do
|
|
rhash --sha256 $binary -o $binary.sha256
|
|
done
|