Skip to content

Commit 563b56a

Browse files
committed
ci: Split the build step
1 parent 4faceb6 commit 563b56a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci-linux-osx-win-conda.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,21 @@ jobs:
129129
set CXX=${{ matrix.compiler }}
130130
cmake .. -GNinja -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx_std }} -DBUILD_PYTHON_INTERFACE:BOOL=ON -DPYTHON_SITELIB=%CONDA_PREFIX%/Lib/site-packages -DPYTHON_EXECUTABLE=%CONDA_PREFIX%/python.exe -DOpenMP_ROOT=%CONDA_PREFIX% -DBUILD_WITH_OPENMP_SUPPORT:BOOL=ON -DLINK_PYTHON_INTERFACE_TO_OPENMP:BOOL=ON -DBUILD_DOCUMENTATION:BOOL=ON -DINSTALL_DOCUMENTATION:BOOL=ON
131131
132-
- name: Build [Conda]
132+
- name: Build [Conda/Linux&macOS]
133+
if: contains(matrix.os, 'macos-') || contains(matrix.os, 'ubuntu')
133134
shell: bash -l {0}
134135
run: |
135136
cd build
136137
cmake --build . --config ${{ matrix.build_type }} -v -j 1
137138
139+
- name: Build [Conda/Windows]
140+
if: contains(matrix.os, 'windows-')
141+
# It's better to use CMD to have all MSVC variables setup
142+
shell: cmd /C CALL {0}
143+
run: |
144+
cd build
145+
cmake --build . --config ${{ matrix.build_type }} -v -j 1
146+
138147
- name: Build documentation [Conda]
139148
shell: bash -l {0}
140149
run: |

0 commit comments

Comments
 (0)