* actions * add build scripts * chmod +x * remove clang env * add ARM builds * install LLVM for Windows * check LLVM * remove fi * check platform * fix LLVM install on windows * diff cache * remove unexpected token && * remove build directory cache from windows * remove Show ENV * fix cross and RUSTFLAGS * final fix for ARM and Windows build * typo * fix PATH for artifacts * sudo for install set PATH . for artifacts.zip * target names for artifacts * platform names for artifacts * remove ARM builds PLATFORM for build scripts * remove PLATFORM and change PATH for artifacts.zip * change PATH for artifacts * fix sccache * set sccache env * Update install-sccache.ps1 * Update install-sccache.ps1 * global env * set global sccache env * SCCACHE_CACHE_SIZE "1G" SCCACHE_IDLE_TIMEOUT 0 * Update build-windows.sh
22 lines
923 B
Bash
Executable File
22 lines
923 B
Bash
Executable File
#!/bin/bash
|
|
set -e # fail on any error
|
|
set -u # treat unset variables as error
|
|
# NOTE: Enables the aes-ni instructions for RustCrypto dependency.
|
|
# If you change this please remember to also update .cargo/config
|
|
export RUSTFLAGS=" -Ctarget-feature=+aes,+sse2,+ssse3 -Ctarget-feature=+crt-static -Clink-arg=-s"
|
|
|
|
echo "_____ Build OpenEthereum and tools _____"
|
|
time cargo build --verbose --release --features final
|
|
time cargo build --verbose --release -p evmbin
|
|
time cargo build --verbose --release -p ethstore-cli
|
|
time cargo build --verbose --release -p ethkey-cli
|
|
|
|
echo "_____ Post-processing binaries _____"
|
|
rm -rf artifacts
|
|
mkdir -p artifacts
|
|
|
|
cp --verbose target/release/openethereum.exe artifacts/openethereum.exe
|
|
cp --verbose target/release/openethereum-evm.exe artifacts/openethereum-evm.exe
|
|
cp --verbose target/release/ethstore.exe artifacts/ethstore.exe
|
|
cp --verbose target/release/ethkey.exe artifacts/ethkey.exe
|