7070 matrix :
7171 os : [windows-2019, windows-2022]
7272 arch : [x64, x86]
73+ config : [debug, release]
7374 fail-fast : false
7475
7576 runs-on : ${{ matrix.os }}
8283 - uses : actions/checkout@v3
8384
8485 - name : Set up Python 3.11
86+ if : matrix.config == 'release'
8587 uses : actions/setup-python@v4
8688 with :
8789 python-version : ' 3.11'
@@ -124,6 +126,7 @@ jobs:
124126 CL : /MP
125127
126128 - name : Install missing Python packages
129+ if : matrix.config == 'release'
127130 run : |
128131 python -m pip install pip --upgrade || exit /b !errorlevel!
129132 python -m pip install pytest || exit /b !errorlevel!
@@ -140,6 +143,7 @@ jobs:
140143 cmake -S . -B build -DBUILD_TESTS=On || exit /b !errorlevel!
141144
142145 - name : Build CLI debug configuration using MSBuild
146+ if : matrix.config == 'debug'
143147 run : |
144148 set ARCH=${{ matrix.arch }}
145149 if "${{ matrix.arch }}" == "x86" (
@@ -149,9 +153,11 @@ jobs:
149153 msbuild -m cppcheck.sln /p:Configuration=Debug-PCRE;Platform=%ARCH% -maxcpucount || exit /b !errorlevel!
150154
151155 - name : Run Debug test
156+ if : matrix.config == 'debug'
152157 run : .\bin\debug\testrunner.exe || exit /b !errorlevel!
153158
154159 - name : Build CLI release configuration using MSBuild
160+ if : matrix.config == 'release'
155161 run : |
156162 set ARCH=${{ matrix.arch }}
157163 if "${{ matrix.arch }}" == "x86" (
@@ -161,9 +167,11 @@ jobs:
161167 msbuild -m cppcheck.sln /p:Configuration=Release-PCRE;Platform=%ARCH% -maxcpucount || exit /b !errorlevel!
162168
163169 - name : Run Release test
170+ if : matrix.config == 'release'
164171 run : .\bin\testrunner.exe || exit /b !errorlevel!
165172
166173 - name : Run test/cli
174+ if : matrix.config == 'release'
167175 run : |
168176 :: since FILESDIR is not set copy the binary to the root so the addons are found
169177 :: copy .\build\bin\Release\cppcheck.exe .\cppcheck.exe || exit /b !errorlevel!
@@ -179,6 +187,7 @@ jobs:
179187 python -m pytest test-suppress-syntaxError.py || exit /b !errorlevel!
180188
181189 - name : Test addons
190+ if : matrix.config == 'release'
182191 run : |
183192 .\cppcheck --addon=threadsafety addons\test\threadsafety || exit /b !errorlevel!
184193 .\cppcheck --addon=threadsafety --std=c++03 addons\test\threadsafety || exit /b !errorlevel!
0 commit comments