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

morningman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git


The following commit(s) were added to refs/heads/main by this push:
     new a9ec39ffdd9 [build] use fixed cmake version (#305)
a9ec39ffdd9 is described below

commit a9ec39ffdd957d26febebfb50bf2f9fb81b5efba
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Fri Apr 18 03:01:35 2025 -0700

    [build] use fixed cmake version (#305)
---
 .github/workflows/build.yml | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ab0af241490..b088437c502 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -107,7 +107,6 @@ jobs:
               'coreutils'
               'gnu-getopt'
               'python@3'
-              'cmake'
               'ninja'
               'ccache'
               'bison'
@@ -132,7 +131,6 @@ jobs:
               'coreutils'
               'gnu-getopt'
               'python@3'
-              'cmake'
               'ninja'
               'ccache'
               'bison'
@@ -153,7 +151,7 @@ jobs:
               'autoconf'
               'libtool-bin'
               'pkg-config'
-              'cmake'
+              'cmake=3.22.1-1ubuntu1.22.04.2'
               'ninja-build'
               'ccache'
               'python-is-python3'
@@ -208,12 +206,20 @@ jobs:
       - name: Prepare for ${{ matrix.config.os }}
         run: |
           if [[ "${{ matrix.config.name }}" =~ macOS-* ]]; then
+            # Install packages except cmake
             brew install ${{ matrix.config.packages }} || true
+            # Install specific version of cmake
+            brew unlink cmake || true
+            wget 
https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-macos-universal.tar.gz
+            tar -xzf cmake-3.22.1-macos-universal.tar.gz
+            sudo cp -r cmake-3.22.1-macos-universal/CMake.app/Contents/* 
/usr/local/
+            cmake --version
           else
             export DEFAULT_DIR='/opt/doris'
             export PATH="${DEFAULT_DIR}/ldb-toolchain/bin:${PATH}"
 
             sudo apt update
+            sudo apt-cache policy cmake
             sudo DEBIAN_FRONTEND=noninteractive apt install --yes ${{ 
matrix.config.packages }}
 
             mkdir -p "${DEFAULT_DIR}"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to