From 0706be03c574c14ff2785c8c2dd6195faf18a3a3 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Wed, 9 Oct 2024 15:54:11 -0400 Subject: [PATCH] Use conda cmake to build cmake --- .github/actions/build_cmake/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/build_cmake/action.yml b/.github/actions/build_cmake/action.yml index 225b38b5fc..69c730f9c4 100644 --- a/.github/actions/build_cmake/action.yml +++ b/.github/actions/build_cmake/action.yml @@ -32,17 +32,19 @@ runs: conda update -y -q conda echo "$CONDA/bin" >> $GITHUB_PATH - conda install -y -q python=3.11 make swig numpy scipy pytest gflags openssl + conda install -y -q python=3.11 make swig numpy scipy pytest gflags openssl cmake=3.26.4 mkdir /tmp/cmake-build pushd /tmp/cmake-build git clone -b v3.30.5 https://gitlab.kitware.com/cmake/cmake.git mkdir cmake/build cd cmake/build - ../bootstrap -- -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_ROOT_PATH="$CONDA_PREFIX" --debug-find + cmake .. -- -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$CONDA_PREFIX" make -j8 popd + conda uninstall cmake + # install base packages for ARM64 if [ "${{ runner.arch }}" = "ARM64" ]; then conda install -y -q -c conda-forge openblas gxx_linux-aarch64 sysroot_linux-aarch64