57
57
runs-on : aks-win-32-cores-128gb
58
58
env :
59
59
CMAKE_BUILD_TYPE : ' Release'
60
+ CMAKE_COMPILE_WARNING_AS_ERROR : ' ON'
60
61
# CMAKE_GENERATOR: 'Ninja Multi-Config'
61
62
CMAKE_GENERATOR : ' Visual Studio 17 2022'
62
63
CMAKE_CXX_COMPILER_LAUNCHER : ccache
@@ -158,7 +159,7 @@ jobs:
158
159
- name : Configure Developer Command Prompt for Microsoft Visual C++
159
160
uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
160
161
with :
161
- toolset : 14.40 # v2022
162
+ toolset : 14.42 # v2022
162
163
163
164
- name : Set SSL_CERT_FILE for model downloading for unit tests
164
165
run : echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV
@@ -171,16 +172,10 @@ jobs:
171
172
-DENABLE_TESTS=ON `
172
173
-DENABLE_CPPLINT=OFF `
173
174
-DENABLE_NCC_STYLE=OFF `
174
- -DCMAKE_COMPILE_WARNING_AS_ERROR=ON `
175
175
-DENABLE_PROFILING_ITT=ON `
176
176
-DSELECTIVE_BUILD=COLLECT `
177
177
-DENABLE_FASTER_BUILD=ON `
178
178
-DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON `
179
- -DCMAKE_CXX_FLAGS="/Zi" `
180
- -DCMAKE_C_FLAGS="/Zi" `
181
- -DCMAKE_SHARED_LINKER_FLAGS="/DEBUG" `
182
- -DCMAKE_MODULE_LINKER_FLAGS="/DEBUG" `
183
- -DCMAKE_EXE_LINKER_FLAGS="/DEBUG" `
184
179
-S ${{ env.OPENVINO_REPO }} `
185
180
-B ${{ env.BUILD_DIR }}
186
181
@@ -203,7 +198,7 @@ jobs:
203
198
204
199
- name : Build C++ samples - OpenVINO build tree
205
200
run : |
206
- cmake -G "${{ env.CMAKE_GENERATOR }}" -DCMAKE_COMPILE_WARNING_AS_ERROR=ON - DOpenVINO_DIR=${{ env.BUILD_DIR }} -S ${{ env.INSTALL_DIR }}/samples/cpp -B ${{ env.BUILD_DIR }}/cpp_samples
201
+ cmake -G "${{ env.CMAKE_GENERATOR }}" -DOpenVINO_DIR=${{ env.BUILD_DIR }} -S ${{ env.INSTALL_DIR }}/samples/cpp -B ${{ env.BUILD_DIR }}/cpp_samples
207
202
cmake --build ${{ env.BUILD_DIR }}/cpp_samples --parallel $ENV:NUMBER_OF_PROCESSORS --config ${{ env.CMAKE_BUILD_TYPE }} --target hello_query_device
208
203
209
204
- name : Ctest - OpenVINO unit tests
@@ -272,13 +267,12 @@ jobs:
272
267
# install PDB files to OpenVINO main installation folder to ensure that they are used instead of PDB files from build folder
273
268
cmake --install ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${{ env.INSTALL_DIR }} --component pdb
274
269
# then, we need to clean build tree to remove PDB files
275
- cmake --build ${{ env.BUILD_DIR }} --parallel 16 --config ${{ env.CMAKE_BUILD_TYPE }} --target clean
270
+ cmake --build ${{ env.BUILD_DIR }} --parallel $ENV:NUMBER_OF_PROCESSORS --config ${{ env.CMAKE_BUILD_TYPE }} --target clean
276
271
& ${{ env.INSTALL_DIR }}/samples/c/build_samples.ps1 -i ${{ env.INSTALL_DIR }} -b ${{ env.BUILD_DIR }}/c_samples
277
272
env :
278
273
CXXFLAGS : " /Zi"
279
274
CFLAGS : " /Zi"
280
275
LDFLAGS : " /DEBUG"
281
- CMAKE_COMPILE_WARNING_AS_ERROR : ' ON'
282
276
CMAKE_GENERATOR : " Visual Studio 17 2022"
283
277
284
278
#
0 commit comments