Skip to content

Commit a66245d

Browse files
committed
ci: macos: fix wheel compatibility with older macOS
Python builds support macOS10.9, build libgit2 with the same macOS deployment target. Add some tracing of libgit2 dependencies. Fixes libgit2#1026
1 parent c131847 commit a66245d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
CCACHE_DIR: ${{ github.workspace }}/.cache/ccache
2525
CCACHE_COMPRESS: 1
2626
PIP_CACHE_DIR: ${{ github.workspace }}/.cache/pip
27+
MACOSX_DEPLOYMENT_TARGET: "10.9"
2728
steps:
2829
- name: checkout pygit2
2930
uses: actions/checkout@v2
@@ -79,6 +80,7 @@ jobs:
7980
-DBUILD_CLAR=NO \
8081
-DUSE_SSH=NO
8182
cmake --build . --target install
83+
otool -L "${{ github.workspace }}/libgit2/env/lib/libgit2.dylib"
8284
VERSION=$(PKG_CONFIG_PATH=$(pwd) pkg-config --modversion libgit2)
8385
echo "::set-output name=version::$VERSION"
8486

0 commit comments

Comments
 (0)