CI: Fix build on macOS 15 runner with CMake 4.0 and Xcode 16.4

- Enforce min CMake version targeted for libssh2
- Downgrade Xcode to 16.2 as that's the last version before upgrading to LLVM 19
  which seems to break building libgit2's bundled zlib
This commit is contained in:
Rémi Verschelde
2025-09-17 12:03:25 +02:00
parent 1a851f221b
commit 77fdf78793
2 changed files with 5 additions and 0 deletions

View File

@@ -70,6 +70,10 @@ jobs:
macos-universal:
runs-on: macos-15
steps:
- name: Setup Xcode 16.2 (16.3+ incompatible with libgit2's zlib)
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2'
- uses: actions/checkout@v4
with:
submodules: recursive

View File

@@ -15,6 +15,7 @@ def build_library(env, deps):
"CMAKE_DISABLE_FIND_PACKAGE_ZLIB": 1,
"CMAKE_DISABLE_FIND_PACKAGE_OPENSSL": 1,
"CRYPTO_BACKEND": "OpenSSL",
"CMAKE_POLICY_VERSION_MINIMUM": 3.5,
}
if env["platform"] != "windows":