From 563b56a3f109fb6c894e9cd99278369712efd866 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 24 Jan 2025 14:37:01 +0100 Subject: [PATCH] ci: Split the build step --- .github/workflows/ci-linux-osx-win-conda.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-linux-osx-win-conda.yml b/.github/workflows/ci-linux-osx-win-conda.yml index 8fa9929bc..c0255e742 100644 --- a/.github/workflows/ci-linux-osx-win-conda.yml +++ b/.github/workflows/ci-linux-osx-win-conda.yml @@ -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: |