From 0ed1e6bc602969a1b29214960a03dda979ed3a3e Mon Sep 17 00:00:00 2001 From: InfinityWei <31464143+InfinityWei@users.noreply.github.com> Date: Thu, 9 Oct 2025 13:09:07 +0800 Subject: [PATCH] Fix MacOS CI build (#2522) As of https://github.com/actions/runner-images/issues/12934, the Mac runners use CMake 4.0, which drops compatibility with CMake < 3.5, but the gRPC library version we use is marked as having CMake 3.1 as its minimum version. Work around this by using `-DCMAKE_POLICY_VERSION_MINIMUM=3.5`. --- .github/workflows/autobuild.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index 02a7e85..d752c2f 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -171,6 +171,7 @@ jobs: "-DLLVM_ENABLE_ZLIB=FORCE_ON" "-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64" "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13" + "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" # BoringSSL doesn't support universal binaries when building with ASM. grpc_cmake: >- "-DOPENSSL_NO_ASM=ON"