Skip to content

Commit

Permalink
Use conda cmake to build cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Oct 9, 2024
1 parent ba2f399 commit 0706be0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/build_cmake/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0706be0

Please sign in to comment.