Fix CI failure on win-64 (#3315)

* Attempt to fix CI failure on win-64

* Set flag in CI workflow instead of CMake file
This commit is contained in:
Hind-M 2024-06-11 11:54:41 +02:00 committed by GitHub
parent 221c671fcd
commit 49fd2f0f5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,9 @@ jobs:
reproc-cpp-static>=14.2.4.post0
- name: build micromamba
shell: cmd /C call {0}
# Using D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR is a workaround to fix CI failure on win-64
# after updating runners to 20240603.1 image
# (cf. https://github.com/actions/runner-images/issues/10004#issuecomment-2153445161)
run: |
set CMAKE_PREFIX_PATH=.\vcpkg_installed\x64-windows-static-md;%CONDA_PREFIX%\Library
cmake -S . ^
@ -156,6 +159,7 @@ jobs:
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache ^
-D CMAKE_C_COMPILER_LAUNCHER=sccache ^
-D CMAKE_MSVC_RUNTIME_LIBRARY="MultiThreadedDLL" ^
-D CMAKE_CXX_FLAGS=" /D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR" ^
-D CMAKE_BUILD_TYPE="Release" ^
-D BUILD_LIBMAMBA=ON ^
-D BUILD_STATIC=ON ^