Skip to content

Commit 9f4baaa

Browse files
committed
Alter build.cmd to avoid PostBuildEvent test execution.
1 parent 3596d66 commit 9f4baaa

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,21 +200,25 @@ jobs:
200200
configuration: "StaticRelease"
201201
platform: "Win32"
202202
version: "vs2022"
203+
tests: "*"
203204

204205
- os: windows-latest
205206
configuration: "StaticDebug"
206207
platform: "Win32"
207208
version: "vs2022"
209+
tests: "*"
208210

209211
- os: windows-latest
210212
configuration: "StaticRelease"
211213
platform: "x64"
212214
version: "vs2022"
215+
tests: "*"
213216

214217
- os: windows-latest
215218
configuration: "StaticDebug"
216219
platform: "x64"
217220
version: "vs2022"
221+
tests: "*"
218222

219223
runs-on: ${{ matrix.os }}
220224

@@ -263,7 +267,7 @@ jobs:
263267
$BC_TEST_SINGLETON = $BC_TEST_EXES.FullName;
264268
Write-Host "Executing $BC_TEST_SINGLETON $env:BOOST_UNIT_TEST_OPTIONS" -ForegroundColor Yellow;
265269
try {
266-
Invoke-Expression "$BC_TEST_SINGLETON $env:BOOST_UNIT_TEST_OPTIONS"
270+
Invoke-Expression "$BC_TEST_SINGLETON --run_test=${{ matrix.tests }} $env:BOOST_UNIT_TEST_OPTIONS"
267271
}
268272
catch {
269273
$ERR = $_;

build.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ IF %ERRORLEVEL% NEQ 0 (
6464
exit /b 1
6565
)
6666
call cd /d "%path_base%\%~1\builds\msvc\%proj_version%"
67-
call "%msbuild_exe%" %msbuild_args% %~1.sln
67+
call "%msbuild_exe%" %msbuild_args% %~1.sln /p:PreBuildEventUseInBuild=false /p:PostBuildEventUseInBuild=false
6868
IF %ERRORLEVEL% NEQ 0 (
6969
call :failure "%msbuild_exe% %msbuild_args% %~1.sln failed."
7070
exit /b 1
@@ -81,7 +81,7 @@ IF %ERRORLEVEL% NEQ 0 (
8181
exit /b 1
8282
)
8383
call cd /d "%path_base%\%~1\builds\msvc\%proj_version%"
84-
call "%msbuild_exe%" %msbuild_args% /target:%~1:Rebuild %~1.sln
84+
call "%msbuild_exe%" %msbuild_args% /target:%~1:Rebuild %~1.sln /p:PreBuildEventUseInBuild=false /p:PostBuildEventUseInBuild=false
8585
IF %ERRORLEVEL% NEQ 0 (
8686
call :failure "%msbuild_exe% %msbuild_args% /target:%~1:Rebuild %~1.sln"
8787
exit /b 1

0 commit comments

Comments
 (0)