Skip to content

Commit

Permalink
ci: Split the build step
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Jan 24, 2025
1 parent 4faceb6 commit 563b56a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci-linux-osx-win-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,21 @@ jobs:
set CXX=${{ matrix.compiler }}
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
- name: Build [Conda]
- name: Build [Conda/Linux&macOS]
if: contains(matrix.os, 'macos-') || contains(matrix.os, 'ubuntu')
shell: bash -l {0}
run: |
cd build
cmake --build . --config ${{ matrix.build_type }} -v -j 1
- name: Build [Conda/Windows]
if: contains(matrix.os, 'windows-')
# It's better to use CMD to have all MSVC variables setup
shell: cmd /C CALL {0}
run: |
cd build
cmake --build . --config ${{ matrix.build_type }} -v -j 1
- name: Build documentation [Conda]
shell: bash -l {0}
run: |
Expand Down

0 comments on commit 563b56a

Please sign in to comment.