9797 mbedtls : " "
9898 zmq : " --build-zmq"
9999 cc : " clang"
100- flags : " -Os -fPIE"
100+ flags : " -Os -fvisibility=hidden - fPIE"
101101 packager : " brew"
102102 packages : " "
103103
@@ -167,11 +167,17 @@ jobs:
167167 path-to-lcov : " ./coverage.info"
168168 github-token : ${{ secrets.github_token }}
169169
170- - name : Failure display compiler version
170+ - name : Failure display selected compiler version
171+ if : ${{ failure() }}
172+ run : |
173+ ${CC} -v
174+ ${CXX} -v
175+
176+ - name : Failure display default compiler version
171177 if : ${{ failure() }}
172178 run : |
173- gcc -v
174179 clang -v
180+ gcc -v
175181
176182 - name : Failure display env
177183 if : ${{ failure() }}
@@ -197,3 +203,89 @@ jobs:
197203 if : ${{ failure() && (matrix.os == 'macos-latest') }}
198204 run : |
199205 DYLD_PRINT_LIBRARIES=1 ${{ github.workspace }}/test/.libs/libbitcoin-protocol-test
206+
207+ verify-sln :
208+ strategy :
209+ fail-fast : false
210+
211+ matrix :
212+ include :
213+ - os : windows-latest
214+ configuration : " StaticRelease"
215+ platform : " Win32"
216+ version : " vs2022"
217+ tests : " *"
218+
219+ - os : windows-latest
220+ configuration : " StaticDebug"
221+ platform : " Win32"
222+ version : " vs2022"
223+ tests : " *"
224+
225+ - os : windows-latest
226+ configuration : " StaticRelease"
227+ platform : " x64"
228+ version : " vs2022"
229+ tests : " *"
230+
231+ - os : windows-latest
232+ configuration : " StaticDebug"
233+ platform : " x64"
234+ version : " vs2022"
235+ tests : " *"
236+
237+ runs-on : ${{ matrix.os }}
238+
239+ steps :
240+ - name : Add msbuild to PATH
241+ uses : microsoft/setup-msbuild@v1.1
242+
243+ - name : Checkout repository
244+ uses : actions/checkout@v2
245+
246+ - name : Initialize SDK
247+ shell : powershell
248+ run : |
249+ try {
250+ Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=323507" -OutFile "sdksetup.exe"
251+
252+ $FeatureList = "OptionId.WindowsDesktopSoftwareDevelopmentKit OptionId.NetFxSoftwareDevelopmentKit"
253+ $Args = "/q /norestart /features $FeatureList"
254+ $setup = Start-Process -PassThru -FilePath "sdksetup.exe" -ArgumentList $Args
255+
256+ $setup.WaitForExit()
257+ if ($setup.ExitCode -ne 0) {
258+ Write-Host "Test execution failure: " $setup.ExitCode -ForegroundColor Red;
259+ exit $setup.ExitCode;
260+ }
261+ }
262+ catch {
263+ $ERR = $_;
264+ Write-Host "Initialization failure: " $ERR -ForegroundColor Red;
265+ exit $ERR;
266+ }
267+
268+ - name : Execute build
269+ run : .\build.cmd .. ${{ matrix.platform }} ${{ matrix.configuration }} ${{ matrix.version }}
270+
271+ - name : Execute tests
272+ shell : powershell
273+ run : |
274+ Write-Host "Locating test executables..." -ForegroundColor Yellow;
275+ $BC_TEST_EXES = @(Get-ChildItem -Path "$env:${{ github.workspace }}\bin" -recurse | Where-Object { $_.Name -eq "libbitcoin-protocol-test.exe" });
276+ If ($BC_TEST_EXES.Count -ne 1) {
277+ Write-Host "Failure, invalid count of test executables." -ForegroundColor Red;
278+ exit 1;
279+ }
280+ Write-Host "Found single test executable: " $BC_TEST_EXES.FullName -ForegroundColor Green;
281+ $BC_TEST_SINGLETON = $BC_TEST_EXES.FullName;
282+ Write-Host "Executing $BC_TEST_SINGLETON $env:BOOST_UNIT_TEST_OPTIONS" -ForegroundColor Yellow;
283+ try {
284+ Invoke-Expression "$BC_TEST_SINGLETON --run_test=${{ matrix.tests }} $env:BOOST_UNIT_TEST_OPTIONS"
285+ }
286+ catch {
287+ $ERR = $_;
288+ Write-Host "Test execution failure: " $ERR -ForegroundColor Red;
289+ exit $ERR;
290+ }
291+ Write-Host "Test execution complete." -ForegroundColor Green;
0 commit comments