mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
CI: fix macOS and tonlib Android GitHub actions in testnet (#786)
* fix macOS github actions * fix android tonlib GH action; * fixing wasm GH action * strip binaries * fix randomly failing ubuntu and wasm GH actions * fix randomly failing ubuntu and wasm GH actions * revert some changes
This commit is contained in:
parent
06e22bdb2e
commit
89700cb2aa
9 changed files with 99 additions and 22 deletions
33
.github/script/fift-func-wasm-build-ubuntu.sh
vendored
33
.github/script/fift-func-wasm-build-ubuntu.sh
vendored
|
@ -3,8 +3,8 @@
|
||||||
# dependencies:
|
# dependencies:
|
||||||
#sudo apt-get install -y build-essential git make cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev python3-pip nodejs libevent-dev
|
#sudo apt-get install -y build-essential git make cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev python3-pip nodejs libevent-dev
|
||||||
|
|
||||||
export CC=$(which clang)
|
export CC=$(which clang-16)
|
||||||
export CXX=$(which clang++)
|
export CXX=$(which clang++-16)
|
||||||
export CCACHE_DISABLE=1
|
export CCACHE_DISABLE=1
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
|
@ -37,7 +37,15 @@ cd ..
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DZLIB_LIBRARY=/usr/lib/x86_64-linux-gnu/libz.so -DZLIB_INCLUDE_DIR=$ZLIB_DIR -DOPENSSL_ROOT_DIR=$OPENSSL_DIR -DOPENSSL_INCLUDE_DIR=$OPENSSL_DIR/include -DOPENSSL_CRYPTO_LIBRARY=$OPENSSL_DIR/libcrypto.so -DOPENSSL_SSL_LIBRARY=$OPENSSL_DIR/libssl.so -DTON_USE_ABSEIL=OFF ..
|
cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_CXX_STANDARD=17 \
|
||||||
|
-DZLIB_LIBRARY=/usr/lib/x86_64-linux-gnu/libz.so \
|
||||||
|
-DZLIB_INCLUDE_DIR=$ZLIB_DIR \
|
||||||
|
-DOPENSSL_ROOT_DIR=$OPENSSL_DIR \
|
||||||
|
-DOPENSSL_INCLUDE_DIR=$OPENSSL_DIR/include \
|
||||||
|
-DOPENSSL_CRYPTO_LIBRARY=$OPENSSL_DIR/libcrypto.so \
|
||||||
|
-DOPENSSL_SSL_LIBRARY=$OPENSSL_DIR/libssl.so \
|
||||||
|
-DTON_USE_ABSEIL=OFF ..
|
||||||
|
|
||||||
test $? -eq 0 || { echo "Can't configure TON build"; exit 1; }
|
test $? -eq 0 || { echo "Can't configure TON build"; exit 1; }
|
||||||
|
|
||||||
|
@ -92,8 +100,23 @@ test $? -eq 0 || { echo "Can't compile libsodium with emmake "; exit 1; }
|
||||||
|
|
||||||
cd ../build
|
cd ../build
|
||||||
|
|
||||||
emcmake cmake -DUSE_EMSCRIPTEN=ON -DCMAKE_BUILD_TYPE=Release -DZLIB_LIBRARY=$ZLIB_DIR/libz.a -DZLIB_INCLUDE_DIR=$ZLIB_DIR -DOPENSSL_ROOT_DIR=$OPENSSL_DIR -DOPENSSL_INCLUDE_DIR=$OPENSSL_DIR/include -DOPENSSL_CRYPTO_LIBRARY=$OPENSSL_DIR/libcrypto.a -DOPENSSL_SSL_LIBRARY=$OPENSSL_DIR/libssl.a -DCMAKE_TOOLCHAIN_FILE=$EMSDK_DIR/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CXX_FLAGS="-sUSE_ZLIB=1" -DSECP256K1_INCLUDE_DIR=$SECP256K1_DIR/include -DSECP256K1_LIBRARY=$SECP256K1_DIR/.libs/libsecp256k1.a -DSODIUM_INCLUDE_DIR=$SODIUM_DIR/src/libsodium/include -DSODIUM_LIBRARY_RELEASE=$SODIUM_DIR/src/libsodium/.libs/libsodium.a -DSODIUM_LIBRARY_DEBUG=$SODIUM_DIR/src/libsodium/.libs/libsodium.a -DSODIUM_USE_STATIC_LIBS=ON ..
|
emcmake cmake -DUSE_EMSCRIPTEN=ON -DCMAKE_BUILD_TYPE=Release \
|
||||||
test $? -eq 0 || { echo "Can't configure TON with with emmake "; exit 1; }
|
-DZLIB_LIBRARY=$ZLIB_DIR/libz.a \
|
||||||
|
-DZLIB_INCLUDE_DIR=$ZLIB_DIR \
|
||||||
|
-DOPENSSL_ROOT_DIR=$OPENSSL_DIR \
|
||||||
|
-DOPENSSL_INCLUDE_DIR=$OPENSSL_DIR/include \
|
||||||
|
-DOPENSSL_CRYPTO_LIBRARY=$OPENSSL_DIR/libcrypto.a \
|
||||||
|
-DOPENSSL_SSL_LIBRARY=$OPENSSL_DIR/libssl.a \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=$EMSDK_DIR/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake \
|
||||||
|
-DCMAKE_CXX_FLAGS="-sUSE_ZLIB=1" \
|
||||||
|
-DSECP256K1_INCLUDE_DIR=$SECP256K1_DIR/include \
|
||||||
|
-DSECP256K1_LIBRARY=$SECP256K1_DIR/.libs/libsecp256k1.a \
|
||||||
|
-DSODIUM_INCLUDE_DIR=$SODIUM_DIR/src/libsodium/include \
|
||||||
|
-DSODIUM_LIBRARY_RELEASE=$SODIUM_DIR/src/libsodium/.libs/libsodium.a \
|
||||||
|
-DSODIUM_LIBRARY_DEBUG=$SODIUM_DIR/src/libsodium/.libs/libsodium.a \
|
||||||
|
-DSODIUM_USE_STATIC_LIBS=ON ..
|
||||||
|
|
||||||
|
test $? -eq 0 || { echo "Can't configure TON with emmake "; exit 1; }
|
||||||
cp -R ../crypto/smartcont ../crypto/fift/lib crypto
|
cp -R ../crypto/smartcont ../crypto/fift/lib crypto
|
||||||
|
|
||||||
emmake make -j16 funcfiftlib func fift tlbc emulator-emscripten
|
emmake make -j16 funcfiftlib func fift tlbc emulator-emscripten
|
||||||
|
|
27
.github/workflows/macos-11.7-compile.yml
vendored
27
.github/workflows/macos-11.7-compile.yml
vendored
|
@ -14,22 +14,43 @@ jobs:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
- name: Compile OpenSSL
|
- name: Compile OpenSSL
|
||||||
run: |
|
run: |
|
||||||
|
export NONINTERACTIVE=1
|
||||||
|
brew install ninja secp256k1 libsodium libmicrohttpd pkg-config automake libtool
|
||||||
git clone https://github.com/openssl/openssl openssl_1_1_1
|
git clone https://github.com/openssl/openssl openssl_1_1_1
|
||||||
cd openssl_1_1_1
|
cd openssl_1_1_1
|
||||||
git checkout OpenSSL_1_1_1-stable
|
git checkout OpenSSL_1_1_1-stable
|
||||||
./Configure --prefix=/usr/local/macos darwin64-x86_64-cc -static -mmacosx-version-min=11.7
|
./Configure darwin64-x86_64-cc -static -mmacosx-version-min=11.7
|
||||||
make build_libs -j4
|
make build_libs -j4
|
||||||
|
|
||||||
- name: Build all
|
- name: Build all
|
||||||
run: |
|
run: |
|
||||||
export NONINTERACTIVE=1
|
brew unlink openssl@3
|
||||||
brew install ninja secp256k1 libsodium libmicrohttpd pkg-config
|
|
||||||
rootPath=`pwd`
|
rootPath=`pwd`
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -GNinja -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=$rootPath/openssl_1_1_1/include -DOPENSSL_CRYPTO_LIBRARY=$rootPath/openssl_1_1_1/libcrypto.a -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=11.7 -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_BUILD_TYPE=Release ..
|
cmake -GNinja -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=$rootPath/openssl_1_1_1/include -DOPENSSL_CRYPTO_LIBRARY=$rootPath/openssl_1_1_1/libcrypto.a -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=11.7 -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_BUILD_TYPE=Release ..
|
||||||
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork tlbc emulator
|
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork tlbc emulator
|
||||||
|
|
||||||
|
- name: Strip binaries
|
||||||
|
run: |
|
||||||
|
strip build/storage/storage-daemon/storage-daemon
|
||||||
|
strip build/storage/storage-daemon/storage-daemon-cli
|
||||||
|
strip build/blockchain-explorer/blockchain-explorer
|
||||||
|
strip build/crypto/fift
|
||||||
|
strip build/crypto/func
|
||||||
|
strip build/crypto/create-state
|
||||||
|
strip build/crypto/tlbc
|
||||||
|
strip build/validator-engine-console/validator-engine-console
|
||||||
|
strip build/tonlib/tonlib-cli
|
||||||
|
strip build/http/http-proxy
|
||||||
|
strip build/rldp-http-proxy/rldp-http-proxy
|
||||||
|
strip build/dht-server/dht-server
|
||||||
|
strip build/lite-client/lite-client
|
||||||
|
strip build/validator-engine/validator-engine
|
||||||
|
strip build/utils/generate-random-id
|
||||||
|
strip build/utils/json2tlo
|
||||||
|
strip build/adnl/adnl-proxy
|
||||||
|
|
||||||
- name: Find & copy binaries
|
- name: Find & copy binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
|
|
27
.github/workflows/macos-12.6-compile.yml
vendored
27
.github/workflows/macos-12.6-compile.yml
vendored
|
@ -15,11 +15,11 @@ jobs:
|
||||||
- name: Compile OpenSSL
|
- name: Compile OpenSSL
|
||||||
run: |
|
run: |
|
||||||
export NONINTERACTIVE=1
|
export NONINTERACTIVE=1
|
||||||
brew install ninja libsodium automake
|
brew install ninja secp256k1 libsodium libmicrohttpd pkg-config automake libtool
|
||||||
git clone https://github.com/openssl/openssl openssl_1_1_1
|
git clone https://github.com/openssl/openssl openssl_1_1_1
|
||||||
cd openssl_1_1_1
|
cd openssl_1_1_1
|
||||||
git checkout OpenSSL_1_1_1-stable
|
git checkout OpenSSL_1_1_1-stable
|
||||||
./Configure --prefix=/usr/local/macos darwin64-x86_64-cc -static -mmacosx-version-min=12.6
|
./Configure darwin64-x86_64-cc -static -mmacosx-version-min=12.6
|
||||||
make build_libs -j4
|
make build_libs -j4
|
||||||
|
|
||||||
- name: Compile Secp256k1
|
- name: Compile Secp256k1
|
||||||
|
@ -33,14 +33,33 @@ jobs:
|
||||||
|
|
||||||
- name: Build all
|
- name: Build all
|
||||||
run: |
|
run: |
|
||||||
export NONINTERACTIVE=1
|
brew unlink openssl@3
|
||||||
brew install ninja libmicrohttpd pkg-config
|
|
||||||
rootPath=`pwd`
|
rootPath=`pwd`
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -GNinja -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=$rootPath/openssl_1_1_1/include -DOPENSSL_CRYPTO_LIBRARY=$rootPath/openssl_1_1_1/libcrypto.a -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=12.6 -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_BUILD_TYPE=Release ..
|
cmake -GNinja -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=$rootPath/openssl_1_1_1/include -DOPENSSL_CRYPTO_LIBRARY=$rootPath/openssl_1_1_1/libcrypto.a -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=12.6 -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_BUILD_TYPE=Release ..
|
||||||
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork tlbc emulator
|
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork tlbc emulator
|
||||||
|
|
||||||
|
- name: Strip binaries
|
||||||
|
run: |
|
||||||
|
strip build/storage/storage-daemon/storage-daemon
|
||||||
|
strip build/storage/storage-daemon/storage-daemon-cli
|
||||||
|
strip build/blockchain-explorer/blockchain-explorer
|
||||||
|
strip build/crypto/fift
|
||||||
|
strip build/crypto/func
|
||||||
|
strip build/crypto/create-state
|
||||||
|
strip build/crypto/tlbc
|
||||||
|
strip build/validator-engine-console/validator-engine-console
|
||||||
|
strip build/tonlib/tonlib-cli
|
||||||
|
strip build/http/http-proxy
|
||||||
|
strip build/rldp-http-proxy/rldp-http-proxy
|
||||||
|
strip build/dht-server/dht-server
|
||||||
|
strip build/lite-client/lite-client
|
||||||
|
strip build/validator-engine/validator-engine
|
||||||
|
strip build/utils/generate-random-id
|
||||||
|
strip build/utils/json2tlo
|
||||||
|
strip build/adnl/adnl-proxy
|
||||||
|
|
||||||
- name: Find & copy binaries
|
- name: Find & copy binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
|
|
8
.github/workflows/ton-wasm-emscripten.yml
vendored
8
.github/workflows/ton-wasm-emscripten.yml
vendored
|
@ -15,7 +15,13 @@ jobs:
|
||||||
- name: Install libraries
|
- name: Install libraries
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y build-essential git make cmake ninja-build clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev python3-pip nodejs libsecp256k1-dev libsodium-dev
|
sudo apt install -y build-essential git make cmake ninja-build clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev python3-pip nodejs libsecp256k1-dev libsodium-dev automake libtool
|
||||||
|
|
||||||
|
- name: Setup compiler
|
||||||
|
run: |
|
||||||
|
wget https://apt.llvm.org/llvm.sh
|
||||||
|
chmod +x llvm.sh
|
||||||
|
sudo ./llvm.sh 16 all
|
||||||
|
|
||||||
- name: Configure & Build
|
- name: Configure & Build
|
||||||
run: |
|
run: |
|
||||||
|
|
6
.github/workflows/tonlib-android-jni.yml
vendored
6
.github/workflows/tonlib-android-jni.yml
vendored
|
@ -19,9 +19,9 @@ jobs:
|
||||||
sudo apt install -y build-essential git make cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev ninja-build
|
sudo apt install -y build-essential git make cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev ninja-build
|
||||||
|
|
||||||
- name: Configure & Build
|
- name: Configure & Build
|
||||||
run: |
|
run: |
|
||||||
wget https://dl.google.com/android/repository/android-ndk-r25b-linux.zip
|
wget -q https://dl.google.com/android/repository/android-ndk-r25b-linux.zip
|
||||||
unzip android-ndk-r25b-linux.zip
|
unzip -q android-ndk-r25b-linux.zip
|
||||||
export JAVA_AWT_LIBRARY=NotNeeded
|
export JAVA_AWT_LIBRARY=NotNeeded
|
||||||
export JAVA_JVM_LIBRARY=NotNeeded
|
export JAVA_JVM_LIBRARY=NotNeeded
|
||||||
export JAVA_INCLUDE_PATH=${JAVA_HOME}/include
|
export JAVA_INCLUDE_PATH=${JAVA_HOME}/include
|
||||||
|
|
8
.github/workflows/ubuntu-22.04-compile.yml
vendored
8
.github/workflows/ubuntu-22.04-compile.yml
vendored
|
@ -39,13 +39,17 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
cmake -GNinja -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=$rootPath/openssl_1_1_1/include -DOPENSSL_CRYPTO_LIBRARY=$rootPath/openssl_1_1_1/libcrypto.a -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
cmake -GNinja -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=$rootPath/openssl_1_1_1/include -DOPENSSL_CRYPTO_LIBRARY=$rootPath/openssl_1_1_1/libcrypto.a -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= ..
|
||||||
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state emulator
|
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state emulator
|
||||||
|
|
||||||
|
- name: Strip binaries
|
||||||
|
run: |
|
||||||
|
strip -g build/storage/storage-daemon/storage-daemon build/storage/storage-daemon/storage-daemon-cli build/crypto/fift build/crypto/tlbc build/crypto/func build/crypto/create-state build/validator-engine-console/validator-engine-console build/tonlib/tonlib-cli build/tonlib/libtonlibjson.so.0.5 build/http/http-proxy build/rldp-http-proxy/rldp-http-proxy build/dht-server/dht-server build/lite-client/lite-client build/validator-engine/validator-engine build/utils/generate-random-id build/utils/json2tlo build/adnl/adnl-proxy build/emulator/libemulator.*
|
||||||
|
|
||||||
- name: Find & copy binaries
|
- name: Find & copy binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
cp build/storage/storage-daemon/storage-daemon build/storage/storage-daemon/storage-daemon-cli build/crypto/fift build/crypto/tlbc build/crypto/func build/crypto/create-state build/validator-engine-console/validator-engine-console build/tonlib/tonlib-cli build/tonlib/libtonlibjson.so.0.5 build/http/http-proxy build/rldp-http-proxy/rldp-http-proxy build/dht-server/dht-server build/lite-client/lite-client build/validator-engine/validator-engine build/utils/generate-random-id build/utils/json2tlo build/adnl/adnl-proxy build/emulator/libemulator.* artifacts
|
cp build/storage/storage-daemon/storage-daemon build/storage/storage-daemon/storage-daemon-cli build/crypto/fift build/crypto/tlbc build/crypto/func build/crypto/create-state build/validator-engine-console/validator-engine-console build/tonlib/tonlib-cli build/tonlib/libtonlibjson.so.0.5 build/http/http-proxy build/rldp-http-proxy/rldp-http-proxy build/dht-server/dht-server build/lite-client/lite-client build/validator-engine/validator-engine build/utils/generate-random-id build/utils/json2tlo build/adnl/adnl-proxy build/emulator/libemulator.* artifacts
|
||||||
chmod +x artifacts/*
|
chmod +x artifacts/*
|
||||||
cp -R crypto/smartcont artifacts/
|
cp -R crypto/smartcont artifacts/
|
||||||
cp -R crypto/fift/lib artifacts/
|
cp -R crypto/fift/lib artifacts/
|
||||||
|
|
6
.github/workflows/ubuntu-compile.yml
vendored
6
.github/workflows/ubuntu-compile.yml
vendored
|
@ -43,9 +43,13 @@ jobs:
|
||||||
cd ..
|
cd ..
|
||||||
buildPath=`pwd`
|
buildPath=`pwd`
|
||||||
|
|
||||||
cmake -GNinja -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=$buildPath/openssl_1_1_1/include -DOPENSSL_CRYPTO_LIBRARY=$buildPath/openssl_1_1_1/libcrypto.a -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
|
cmake -GNinja -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=$buildPath/openssl_1_1_1/include -DOPENSSL_CRYPTO_LIBRARY=$buildPath/openssl_1_1_1/libcrypto.a -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= ..
|
||||||
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork emulator
|
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork emulator
|
||||||
|
|
||||||
|
- name: Strip binaries
|
||||||
|
run: |
|
||||||
|
strip -g build-${{ matrix.os }}/storage/storage-daemon/storage-daemon build-${{ matrix.os }}/storage/storage-daemon/storage-daemon-cli build-${{ matrix.os }}/crypto/fift build-${{ matrix.os }}/crypto/tlbc build-${{ matrix.os }}/crypto/func build-${{ matrix.os }}/crypto/create-state build-${{ matrix.os }}/validator-engine-console/validator-engine-console build-${{ matrix.os }}/tonlib/tonlib-cli build-${{ matrix.os }}/tonlib/libtonlibjson.so.0.5 build-${{ matrix.os }}/http/http-proxy build-${{ matrix.os }}/rldp-http-proxy/rldp-http-proxy build-${{ matrix.os }}/dht-server/dht-server build-${{ matrix.os }}/lite-client/lite-client build-${{ matrix.os }}/validator-engine/validator-engine build-${{ matrix.os }}/utils/generate-random-id build-${{ matrix.os }}/utils/json2tlo build-${{ matrix.os }}/adnl/adnl-proxy build-${{ matrix.os }}/emulator/libemulator.*
|
||||||
|
|
||||||
- name: Find & copy binaries
|
- name: Find & copy binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts-${{ matrix.os }}
|
mkdir artifacts-${{ matrix.os }}
|
||||||
|
|
2
.github/workflows/win-2019-compile.yml
vendored
2
.github/workflows/win-2019-compile.yml
vendored
|
@ -92,7 +92,7 @@ jobs:
|
||||||
mkdir artifacts\smartcont
|
mkdir artifacts\smartcont
|
||||||
mkdir artifacts\lib
|
mkdir artifacts\lib
|
||||||
|
|
||||||
for %%I in (build\storage\storage-daemon\Release\storage-daemon.exe build\storage\storage-daemon\Release\storage-daemon-cli.exe build\blockchain-explorer\blockchain-explorer.exe build\crypto\Release\fift.exe build\crypto\Release\tlbc.exe build\crypto\Release\func.exe build\crypto\Release\create-state.exe build\validator-engine-console\Release\validator-engine-console.exe build\tonlib\Release\tonlib-cli.exe build\tonlib\Release\tonlibjson.dll build\http\Release\http-proxy.exe build\rldp-http-proxy\Release\rldp-http-proxy.exe build\dht-server\Release\dht-server.exe build\lite-client\Release\lite-client.exe build\validator-engine\Release\validator-engine.exe build\utils\Release\generate-random-id.exe build\utils\Release\json2tlo.exe build\adnl\Release\adnl-proxy.exe build\emulator\Release\emulator.dll) do copy %%I artifacts\
|
for %%I in (build\storage\storage-daemon\Release\storage-daemon.exe build\storage\storage-daemon\Release\storage-daemon-cli.exe build\blockchain-explorer\blockchain-explorer.exe build\crypto\Release\fift.exe build\crypto\Release\tlbc.exe build\crypto\Release\func.exe build\crypto\Release\create-state.exe build\validator-engine-console\Release\validator-engine-console.exe build\tonlib\Release\tonlib-cli.exe build\tonlib\Release\tonlibjson.dll build\http\Release\http-proxy.exe build\rldp-http-proxy\Release\rldp-http-proxy.exe build\dht-server\Release\dht-server.exe build\lite-client\Release\lite-client.exe build\validator-engine\Release\validator-engine.exe build\utils\Release\generate-random-id.exe build\utils\Release\json2tlo.exe build\adnl\Release\adnl-proxy.exe build\emulator\Release\emulator.dll) do (strip -g %%I & copy %%I artifacts\)
|
||||||
xcopy /e /k /h /i crypto\smartcont artifacts\smartcont
|
xcopy /e /k /h /i crypto\smartcont artifacts\smartcont
|
||||||
xcopy /e /k /h /i crypto\fift\lib artifacts\lib
|
xcopy /e /k /h /i crypto\fift\lib artifacts\lib
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ then
|
||||||
BLST_LIBRARY=$(pwd)/third_party/blst/armv8/libblst.a
|
BLST_LIBRARY=$(pwd)/third_party/blst/armv8/libblst.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ORIG_ARCH=$ARCH
|
||||||
ARCH=$ABI
|
ARCH=$ABI
|
||||||
|
|
||||||
mkdir -p build-$ARCH
|
mkdir -p build-$ARCH
|
||||||
|
@ -46,7 +46,7 @@ cmake .. -GNinja -DPORTABLE=1 \
|
||||||
-DANDROID_ABI=x86 -DANDROID_PLATFORM=android-32 -DANDROID_NDK=${ANDROID_NDK_ROOT} \
|
-DANDROID_ABI=x86 -DANDROID_PLATFORM=android-32 -DANDROID_NDK=${ANDROID_NDK_ROOT} \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release -DANDROID_ABI=${ABI} \
|
-DCMAKE_BUILD_TYPE=Release -DANDROID_ABI=${ABI} \
|
||||||
-DOPENSSL_ROOT_DIR=${OPENSSL_DIR}/${ARCH} -DTON_ARCH="" \
|
-DOPENSSL_ROOT_DIR=${OPENSSL_DIR}/${ORIG_ARCH} -DTON_ARCH="" \
|
||||||
-DTON_ONLY_TONLIB=ON \
|
-DTON_ONLY_TONLIB=ON \
|
||||||
-DSECP256K1_INCLUDE_DIR=${SECP256K1_INCLUDE_DIR} -DSECP256K1_LIBRARY=${SECP256K1_LIBRARY} \
|
-DSECP256K1_INCLUDE_DIR=${SECP256K1_INCLUDE_DIR} -DSECP256K1_LIBRARY=${SECP256K1_LIBRARY} \
|
||||||
-DSODIUM_INCLUDE_DIR=${SODIUM_INCLUDE_DIR} -DSODIUM_LIBRARY_RELEASE=${SODIUM_LIBRARY_RELEASE} \
|
-DSODIUM_INCLUDE_DIR=${SODIUM_INCLUDE_DIR} -DSODIUM_LIBRARY_RELEASE=${SODIUM_LIBRARY_RELEASE} \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue