9797 icu : " --build-icu --with-icu"
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,77 @@ jobs:
197203 if : ${{ failure() && (matrix.os == 'macos-latest') }}
198204 run : |
199205 DYLD_PRINT_LIBRARIES=1 ${{ github.workspace }}/test/.libs/libbitcoin-server-test
206+
207+ verify-sln :
208+ strategy :
209+ fail-fast : false
210+
211+ matrix :
212+ include :
213+ - os : windows-latest
214+ configuration : " StaticDebug"
215+ platform : " x64"
216+ version : " vs2022"
217+ tests : " *"
218+
219+ - os : windows-latest
220+ configuration : " StaticRelease"
221+ platform : " x64"
222+ version : " vs2022"
223+ tests : " *"
224+
225+ runs-on : ${{ matrix.os }}
226+
227+ steps :
228+ - name : Add msbuild to PATH
229+ uses : microsoft/setup-msbuild@v1.1
230+
231+ - name : Checkout repository
232+ uses : actions/checkout@v2
233+
234+ - name : Initialize SDK
235+ shell : powershell
236+ run : |
237+ try {
238+ Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=323507" -OutFile "sdksetup.exe"
239+
240+ $FeatureList = "OptionId.WindowsDesktopSoftwareDevelopmentKit OptionId.NetFxSoftwareDevelopmentKit"
241+ $Args = "/q /norestart /features $FeatureList"
242+ $setup = Start-Process -PassThru -FilePath "sdksetup.exe" -ArgumentList $Args
243+
244+ $setup.WaitForExit()
245+ if ($setup.ExitCode -ne 0) {
246+ Write-Host "Test execution failure: " $setup.ExitCode -ForegroundColor Red;
247+ exit $setup.ExitCode;
248+ }
249+ }
250+ catch {
251+ $ERR = $_;
252+ Write-Host "Initialization failure: " $ERR -ForegroundColor Red;
253+ exit $ERR;
254+ }
255+
256+ - name : Execute build
257+ run : .\build.cmd .. ${{ matrix.platform }} ${{ matrix.configuration }} ${{ matrix.version }}
258+
259+ - name : Execute tests
260+ shell : powershell
261+ run : |
262+ Write-Host "Locating test executables..." -ForegroundColor Yellow;
263+ $BC_TEST_EXES = @(Get-ChildItem -Path "$env:${{ github.workspace }}\bin" -recurse | Where-Object { $_.Name -eq "libbitcoin-server-test.exe" });
264+ If ($BC_TEST_EXES.Count -ne 1) {
265+ Write-Host "Failure, invalid count of test executables." -ForegroundColor Red;
266+ exit 1;
267+ }
268+ Write-Host "Found single test executable: " $BC_TEST_EXES.FullName -ForegroundColor Green;
269+ $BC_TEST_SINGLETON = $BC_TEST_EXES.FullName;
270+ Write-Host "Executing $BC_TEST_SINGLETON $env:BOOST_UNIT_TEST_OPTIONS" -ForegroundColor Yellow;
271+ try {
272+ Invoke-Expression "$BC_TEST_SINGLETON --run_test=${{ matrix.tests }} $env:BOOST_UNIT_TEST_OPTIONS"
273+ }
274+ catch {
275+ $ERR = $_;
276+ Write-Host "Test execution failure: " $ERR -ForegroundColor Red;
277+ exit $ERR;
278+ }
279+ Write-Host "Test execution complete." -ForegroundColor Green;
0 commit comments