Skip to content

Commit 77fdf78

Browse files
committed
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
1 parent 1a851f2 commit 77fdf78

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ jobs:
7070
macos-universal:
7171
runs-on: macos-15
7272
steps:
73+
- name: Setup Xcode 16.2 (16.3+ incompatible with libgit2's zlib)
74+
uses: maxim-lobanov/setup-xcode@v1
75+
with:
76+
xcode-version: '16.2'
7377
- uses: actions/checkout@v4
7478
with:
7579
submodules: recursive

tools/ssh2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def build_library(env, deps):
1515
"CMAKE_DISABLE_FIND_PACKAGE_ZLIB": 1,
1616
"CMAKE_DISABLE_FIND_PACKAGE_OPENSSL": 1,
1717
"CRYPTO_BACKEND": "OpenSSL",
18+
"CMAKE_POLICY_VERSION_MINIMUM": 3.5,
1819
}
1920

2021
if env["platform"] != "windows":

0 commit comments

Comments
 (0)