Skip to content

Commit be29874

Browse files
committed
Updated CI workflow to fix windows build
1 parent 8f75bd9 commit be29874

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ jobs:
111111
- name: Build (old CMake, gcc/Clang)
112112
if: matrix.cmake == '3.10.x' && matrix.os != 'windows-latest'
113113
run: |
114-
cmake -H. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON' -D'DEPTHAI_BUILD_TESTS=ON' ${{ env.CMAKE_ARGS }}
115-
cmake --build build -- -j4
114+
cmake -H. -Bbuild -D'CMAKE_BUILD_TYPE=Release' -D'HUNTER_CONFIGURATION_TYPES=Release' -D'DEPTHAI_BUILD_EXAMPLES=ON' -D'DEPTHAI_BUILD_TESTS=ON' ${{ env.CMAKE_ARGS }}
115+
cmake --build build --config Release -- -j4
116116
117117
# CMake binaries unavailable
118118
# - name: Build (old CMake, MSVC)
@@ -124,8 +124,8 @@ jobs:
124124
- name: Build (newest CMake)
125125
if: matrix.cmake != '3.10.x'
126126
run: |
127-
cmake -S . -B build -D DEPTHAI_BUILD_EXAMPLES=ON -D DEPTHAI_BUILD_TESTS=ON ${{ env.CMAKE_ARGS }}
128-
cmake --build build --parallel 4
127+
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D HUNTER_CONFIGURATION_TYPES=Release -D DEPTHAI_BUILD_EXAMPLES=ON -D DEPTHAI_BUILD_TESTS=ON ${{ env.CMAKE_ARGS }}
128+
cmake --build build --parallel 4 --config Release
129129
130130
integration:
131131
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)