mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Adding Github action - Win64 ton compile (#14)
* Add github action win64 compile * manager.cpp - Strange though, but due to this kind of type usage win64 compilation fails. Let's make it more generic.
This commit is contained in:
parent
523746f7f2
commit
96d514ef66
2 changed files with 78 additions and 1 deletions
77
.github/workflows/ccpp-win64.yml
vendored
Normal file
77
.github/workflows/ccpp-win64.yml
vendored
Normal file
|
@ -0,0 +1,77 @@
|
|||
name: C/C++ CI Win64 Compile
|
||||
|
||||
on: [push]
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: cmd
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Get Current OS version
|
||||
run: |
|
||||
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
|
||||
|
||||
- name: Check out current repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: Check out zlib repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: desktop-app/zlib
|
||||
path: zlib
|
||||
|
||||
- name: Setup msbuild.exe
|
||||
uses: microsoft/setup-msbuild@v1.0.2
|
||||
|
||||
- name: Compile zlib Win64
|
||||
run: |
|
||||
cd zlib\contrib\vstudio\vc14
|
||||
msbuild zlibstat.vcxproj /p:Configuration=Debug /p:platform=x64
|
||||
msbuild zlibstat.vcxproj /p:Configuration=ReleaseWithoutAsm /p:platform=x64
|
||||
|
||||
- name: Install OpenSSL Win64
|
||||
run: |
|
||||
curl -o openssl.msi https://slproweb.com/download/Win64OpenSSL-1_1_1i.msi
|
||||
msiexec /i openssl.msi /quiet /qn /norestart
|
||||
|
||||
- name: Build ton
|
||||
run: |
|
||||
set root=%cd%
|
||||
echo %root%
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DZLIB_FOUND=1 -DZLIB_INCLUDE_DIR=%root%\zlib -DZLIB_LIBRARY=%root%\zlib\contrib\vstudio\vc14\x64\ZlibStatReleaseWithoutAsm\zlibstat.lib -DCMAKE_CXX_FLAGS="/DTD_WINDOWS=1 /EHsc /bigobj /W0" -DCMAKE_BUILD_TYPE=Release ..
|
||||
|
||||
- name: Compile ton
|
||||
run: |
|
||||
cd build
|
||||
cmake --build .
|
||||
continue-on-error: true
|
||||
|
||||
- name: Show executables
|
||||
run: |
|
||||
cd build
|
||||
dir *.exe /a-D /S /B
|
||||
|
||||
- name: Check if validator-engine.exe exists
|
||||
run: |
|
||||
set root=%cd%
|
||||
copy %root%\build\validator-engine\Debug\validator-engine.exe test
|
||||
|
||||
- name: Find & copy binaries
|
||||
run: |
|
||||
mkdir artifacts
|
||||
for /f %%a in ('dir *.exe /b /a /s') do copy /Y %%a artifacts
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: ton-win64-binaries
|
||||
path: artifacts
|
|
@ -1692,7 +1692,7 @@ void ValidatorManagerImpl::update_shards() {
|
|||
auto exp_vec = last_masterchain_state_->get_shards();
|
||||
auto config = last_masterchain_state_->get_consensus_config();
|
||||
validatorsession::ValidatorSessionOptions opts{config};
|
||||
uint threshold = 9407194;
|
||||
td::uint32 threshold = 9407194;
|
||||
bool force_group_id_upgrade = last_masterchain_seqno_ == threshold;
|
||||
auto legacy_opts_hash = opts.get_hash();
|
||||
if(last_masterchain_seqno_ >= threshold) { //TODO move to get_consensus_config()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue