Skip to content

Commit b1d1ebe

Browse files
committed
setting macos specific variables only for macos #12 #3
1 parent 25dd94c commit b1d1ebe

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ jobs:
8686
if: matrix.os == 'windows-latest'
8787
uses: compnerd/gha-setup-vsdevenv@v6
8888

89+
- name: "Set up macOS environment"
90+
if: ${{ startsWith(matrix.os, 'macos') }}
91+
run: |
92+
echo 'CIBW_PROJECT_REQUIRES_PYTHON=">=3.9"' >> $GITHUB_ENV
93+
echo 'MACOSX_DEPLOYMENT_TARGET="14.0"' >> $GITHUB_ENV
94+
8995
- name: ccache
9096
uses: hendrikmuhs/ccache-action@v1.2
9197
with:
@@ -114,10 +120,8 @@ jobs:
114120
CIBW_ENVIRONMENT_WINDOWS: "CMAKE_GENERATOR=Ninja"
115121
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }}
116122
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux }}
117-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9"
118-
MACOSX_DEPLOYMENT_TARGET: '14.0'
119123

120-
- name: Building wheel sumo-data
124+
- name: Building windows platform wheel sumo-data
121125
if: matrix.os == 'windows-latest'
122126
run: |
123127
python -m pip install build
@@ -134,10 +138,8 @@ jobs:
134138
CIBW_ENVIRONMENT_WINDOWS: "CMAKE_GENERATOR=Ninja"
135139
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }}
136140
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux }}
137-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9"
138-
# CIBW_REPAIR_WHEEL_COMMAND_MACOS: "" # disable repair process to inspect the wheel
141+
# CIBW_REPAIR_WHEEL_COMMAND: "" # disable repair process to inspect the wheel
139142
# CIBW_BUILD_VERBOSITY: 2
140-
MACOSX_DEPLOYMENT_TARGET: '14.0'
141143

142144
- uses: actions/upload-artifact@v6
143145
with:

0 commit comments

Comments
 (0)