Skip to content

Commit

Permalink
CI: fix windows build disabling mimalloc override option (erigontech#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mriccobene authored Aug 30, 2023
1 parent d3a76dc commit a26e0e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ jobs:

- name: Configure CMake
working-directory: C:\build
run: cmake ${{runner.workspace}}\silkworm -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
# Currently Conan Center has Windows binaries built only with msvc 16 only and mimalloc built only with option override=False
# In order to build mimalloc with override=True we need to switch to msvc 17 compiler but this would trigger a full rebuild from sources
# of all dependencies wasting a lot of time, so we prefer to turn off mimalloc override
run: cmake ${{runner.workspace}}\silkworm -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DCMAKE_CONAN_OPTIONS="mimalloc:override=False"

- name: Build unit tests
working-directory: C:\build
Expand Down
2 changes: 1 addition & 1 deletion cmake/conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ conan_cmake_install(
PATH_OR_REFERENCE "${CONAN_BINARY_DIR}"
INSTALL_FOLDER "${CONAN_BINARY_DIR}"
BUILD missing
PROFILE "${CMAKE_SOURCE_DIR}/cmake/profiles/${CONAN_PROFILE}"
PROFILE "${CMAKE_SOURCE_DIR}/cmake/profiles/${CONAN_PROFILE}" OPTIONS "${CMAKE_CONAN_OPTIONS}"
)

0 comments on commit a26e0e2

Please sign in to comment.