This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 78d38ab21 fix(ci): use CMAKE 3.31 instead of 4.0 in macOS (#2899)
78d38ab21 is described below

commit 78d38ab2159f8b3bb28a8559fe31b74fa4038ac9
Author: hulk <[email protected]>
AuthorDate: Fri Apr 25 01:02:53 2025 +0800

    fix(ci): use CMAKE 3.31 instead of 4.0 in macOS (#2899)
---
 .github/workflows/kvrocks.yaml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/kvrocks.yaml b/.github/workflows/kvrocks.yaml
index 570577991..25ee1d7f0 100644
--- a/.github/workflows/kvrocks.yaml
+++ b/.github/workflows/kvrocks.yaml
@@ -229,9 +229,17 @@ jobs:
       - name: Setup macOS
         if: ${{ startsWith(matrix.os, 'macos') }}
         run: |
-          brew install --quiet --formula cmake gcc autoconf automake libtool 
openssl coreutils
+          brew install --quiet --formula gcc autoconf automake libtool openssl 
coreutils
           echo "NPROC=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
           echo "CMAKE_EXTRA_DEFS=-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl" >> 
$GITHUB_ENV
+
+      - name: Setup cmake
+        if: ${{ startsWith(matrix.os, 'macos') }}
+        # Cmake 4.0 has the compatibility issue, just pin it to 3.31.
+        # See https://github.com/actions/runner-images/issues/11926.
+        run: |
+          pipx install --force cmake==3.31
+
       - name: Setup Linux
         if: ${{ startsWith(matrix.os, 'ubuntu') || matrix.arm_linux }}
         run: |

Reply via email to