Skip to content

Commit 7afa313

Browse files
committed
DEV: set macOS deployment target
1 parent 5aae61c commit 7afa313

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ jobs:
3434
with:
3535
platforms: arm64
3636

37+
- name: Set macOS Deployment Target
38+
if: ${{startsWith(matrix.os, 'macos')}}
39+
run: |
40+
if [[ "${{ matrix.os }}" == "macos-13" ]]; then
41+
echo "MACOSX_DEPLOYMENT_TARGET=13.0" >> $GITHUB_ENV
42+
elif [[ "${{ matrix.os }}" == "macos-14" ]]; then
43+
echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> $GITHUB_ENV
44+
fi
45+
3746
- name: Build wheels
3847
uses: pypa/[email protected]
3948
env: # Can specify per os - e.g. CIBW_BEFORE_ALL_LINUX, CIBW_BEFORE_ALL_MACOS, CIBW_BEFORE_ALL_WINDOWS

0 commit comments

Comments
 (0)