-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various changes in TVM, github builds and tests (#793)
* Bugfixes in TVM and node * Upgrade to C++17 * Improve GitHub builds * Fix existing tests and partially integrate them into builds --------- Co-authored-by: neodiX42 <[email protected]> Co-authored-by: EmelyanenkoK <[email protected]>
- Loading branch information
1 parent
89700cb
commit 5847897
Showing
122 changed files
with
2,891 additions
and
4,102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-xc++ | ||
-std=c++14 | ||
-std=c++17 | ||
-iquote . | ||
-iquote tdtl/ | ||
-iquote tl/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,24 +12,33 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
- name: Compile OpenSSL | ||
|
||
- name: Compile Secp256k1 | ||
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 | ||
cd openssl_1_1_1 | ||
git checkout OpenSSL_1_1_1-stable | ||
./Configure darwin64-x86_64-cc -static -mmacosx-version-min=11.7 | ||
make build_libs -j4 | ||
git clone https://github.com/libbitcoin/secp256k1.git | ||
cd secp256k1 | ||
./autogen.sh | ||
./configure --enable-module-recovery | ||
make | ||
make install | ||
- name: Build all | ||
run: | | ||
brew unlink openssl@3 | ||
brew unlink [email protected] | ||
brew install openssl@3 | ||
brew unlink openssl@3 && brew link --overwrite openssl@3 | ||
rootPath=`pwd` | ||
mkdir 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 .. | ||
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 | ||
cmake -GNinja -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 \ | ||
test-ed25519 test-ed25519-crypto test-bigint test-vm test-fift test-cells test-smartcont test-net test-tdactor \ | ||
test-tdutils test-tonlib-offline test-adnl test-dht test-rldp test-rldp2 test-catchain test-fec test-tddb test-db test-validator-session-state | ||
- name: Strip binaries | ||
run: | | ||
|
@@ -51,6 +60,11 @@ jobs: | |
strip build/utils/json2tlo | ||
strip build/adnl/adnl-proxy | ||
- name: Run tests | ||
run: | | ||
cd build | ||
ctest --output-on-failure -E "test-catchain|test-actors" | ||
- name: Find & copy binaries | ||
run: | | ||
mkdir artifacts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,18 +12,11 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
- name: Compile OpenSSL | ||
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 | ||
cd openssl_1_1_1 | ||
git checkout OpenSSL_1_1_1-stable | ||
./Configure darwin64-x86_64-cc -static -mmacosx-version-min=12.6 | ||
make build_libs -j4 | ||
|
||
- name: Compile Secp256k1 | ||
run: | | ||
export NONINTERACTIVE=1 | ||
brew install ninja secp256k1 libsodium libmicrohttpd pkg-config automake libtool | ||
git clone https://github.com/libbitcoin/secp256k1.git | ||
cd secp256k1 | ||
./autogen.sh | ||
|
@@ -33,12 +26,19 @@ jobs: | |
- name: Build all | ||
run: | | ||
brew unlink openssl@3 | ||
brew unlink [email protected] | ||
brew install openssl@3 | ||
brew unlink openssl@3 && brew link --overwrite openssl@3 | ||
rootPath=`pwd` | ||
mkdir 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 .. | ||
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 | ||
cmake -GNinja -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 \ | ||
test-ed25519 test-ed25519-crypto test-bigint test-vm test-fift test-cells test-smartcont test-net test-tdactor \ | ||
test-tdutils test-tonlib-offline test-adnl test-dht test-rldp test-rldp2 test-catchain test-fec test-tddb test-db test-validator-session-state | ||
- name: Strip binaries | ||
run: | | ||
|
@@ -60,6 +60,11 @@ jobs: | |
strip build/utils/json2tlo | ||
strip build/adnl/adnl-proxy | ||
- name: Run tests | ||
run: | | ||
cd build | ||
ctest --output-on-failure -E "test-catchain|test-actors" | ||
- name: Find & copy binaries | ||
run: | | ||
mkdir artifacts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.