9191 consensus : " --without-consensus"
9292 icu : " --build-icu --with-icu"
9393 cc : " clang"
94- flags : " -Os -fPIE"
94+ flags : " -Os -fvisibility=hidden - fPIE"
9595 packager : " brew"
9696 packages : " "
9797
@@ -160,11 +160,17 @@ jobs:
160160 path-to-lcov : " ./coverage.info"
161161 github-token : ${{ secrets.github_token }}
162162
163- - name : Failure display compiler version
163+ - name : Failure display selected compiler version
164+ if : ${{ failure() }}
165+ run : |
166+ ${CC} -v
167+ ${CXX} -v
168+
169+ - name : Failure display default compiler version
164170 if : ${{ failure() }}
165171 run : |
166- gcc -v
167172 clang -v
173+ gcc -v
168174
169175 - name : Failure display env
170176 if : ${{ failure() }}
@@ -190,3 +196,77 @@ jobs:
190196 if : ${{ failure() && (matrix.os == 'macos-latest') }}
191197 run : |
192198 DYLD_PRINT_LIBRARIES=1 ${{ github.workspace }}/test/.libs/libbitcoin-node-test
199+
200+ verify-sln :
201+ strategy :
202+ fail-fast : false
203+
204+ matrix :
205+ include :
206+ - os : windows-latest
207+ configuration : " StaticDebug"
208+ platform : " x64"
209+ version : " vs2022"
210+ tests : " *"
211+
212+ - os : windows-latest
213+ configuration : " StaticRelease"
214+ platform : " x64"
215+ version : " vs2022"
216+ tests : " *"
217+
218+ runs-on : ${{ matrix.os }}
219+
220+ steps :
221+ - name : Add msbuild to PATH
222+ 223+
224+ - name : Checkout repository
225+ uses : actions/checkout@v2
226+
227+ - name : Initialize SDK
228+ shell : powershell
229+ run : |
230+ try {
231+ Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=323507" -OutFile "sdksetup.exe"
232+
233+ $FeatureList = "OptionId.WindowsDesktopSoftwareDevelopmentKit OptionId.NetFxSoftwareDevelopmentKit"
234+ $Args = "/q /norestart /features $FeatureList"
235+ $setup = Start-Process -PassThru -FilePath "sdksetup.exe" -ArgumentList $Args
236+
237+ $setup.WaitForExit()
238+ if ($setup.ExitCode -ne 0) {
239+ Write-Host "Test execution failure: " $setup.ExitCode -ForegroundColor Red;
240+ exit $setup.ExitCode;
241+ }
242+ }
243+ catch {
244+ $ERR = $_;
245+ Write-Host "Initialization failure: " $ERR -ForegroundColor Red;
246+ exit $ERR;
247+ }
248+
249+ - name : Execute build
250+ run : .\build.cmd .. ${{ matrix.platform }} ${{ matrix.configuration }} ${{ matrix.version }}
251+
252+ - name : Execute tests
253+ shell : powershell
254+ run : |
255+ Write-Host "Locating test executables..." -ForegroundColor Yellow;
256+ $BC_TEST_EXES = @(Get-ChildItem -Path "$env:${{ github.workspace }}\bin" -recurse | Where-Object { $_.Name -eq "libbitcoin-node-test.exe" });
257+ If ($BC_TEST_EXES.Count -ne 1) {
258+ Write-Host "Failure, invalid count of test executables." -ForegroundColor Red;
259+ exit 1;
260+ }
261+ Write-Host "Found single test executable: " $BC_TEST_EXES.FullName -ForegroundColor Green;
262+ $BC_TEST_SINGLETON = $BC_TEST_EXES.FullName;
263+ Write-Host "Executing $BC_TEST_SINGLETON $env:BOOST_UNIT_TEST_OPTIONS" -ForegroundColor Yellow;
264+ try {
265+ Invoke-Expression "$BC_TEST_SINGLETON --run_test=${{ matrix.tests }} $env:BOOST_UNIT_TEST_OPTIONS"
266+ }
267+ catch {
268+ $ERR = $_;
269+ Write-Host "Test execution failure: " $ERR -ForegroundColor Red;
270+ exit $ERR;
271+ }
272+ Write-Host "Test execution complete." -ForegroundColor Green;
0 commit comments