Skip to content

Commit

Permalink
ci: Use GitHub mirror for CoCoA package (cvc5#11173)
Browse files Browse the repository at this point in the history
We are constantly hitting timeouts on CI when trying to download CoCoA
from the CoCoA website. We now mirror the required version in a separate
repository and download it from there to fix this issue.
  • Loading branch information
daniel-larraz authored Aug 21, 2024
1 parent 76ae9b5 commit 12eac7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindCoCoA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ if(NOT CoCoA_FOUND_SYSTEM)
ExternalProject_Add(
CoCoA-EP
${COMMON_EP_CONFIG}
URL "http://cocoa.dima.unige.it/cocoa/cocoalib/tgz/CoCoALib-${CoCoA_VERSION}.tgz"
URL https://github.com/cvc5/cvc5-deps/blob/main/CoCoALib-${CoCoA_VERSION}.tgz?raw=true
URL_HASH SHA256=f8bb227e2e1729e171cf7ac2008af71df25914607712c35db7bcb5a044a928c6
# CoCoA requires C++14, but the check does not work with compilers that
# default to C++17 or newer. The patch fixes the check.
PATCH_COMMAND patch -p1 -d <SOURCE_DIR>
-i ${CMAKE_CURRENT_LIST_DIR}/deps-utils/CoCoALib-0.99800-trace.patch
-i ${CMAKE_CURRENT_LIST_DIR}/deps-utils/CoCoALib-${CoCoA_VERSION}-trace.patch
BUILD_IN_SOURCE YES
CONFIGURE_COMMAND ${SHELL} ./configure --prefix=<INSTALL_DIR> --with-libgmp=${GMP_LIBRARY}
--with-cxx=${CMAKE_CXX_COMPILER} --with-cxxflags=${CoCoA_CXXFLAGS}
Expand Down

0 comments on commit 12eac7e

Please sign in to comment.