Skip to content

Commit f17569c

Browse files
committed
ci: simplify macOS wheel builds
Let's always use cibuildwheel. I think this should just work with modern tooling.
1 parent 8d4e26e commit f17569c

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

.github/workflows/wheel.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,35 +65,17 @@ jobs:
6565
- name: Set up Python
6666
uses: actions/setup-python@v4
6767
with:
68-
python-version: '3.8'
69-
if: ${{ matrix.py != 'cp38-*' || matrix.arch != 'arm64' }}
68+
python-version: '3.11'
7069

7170
- uses: actions/checkout@v4
7271

7372
- name: Install Dependencies
7473
run: |
7574
python -m pip install --require-hashes -r ci/requirements.macoswheels.txt
76-
if: ${{ matrix.py != 'cp38-*' || matrix.arch != 'arm64' }}
77-
78-
- name: Install Dependencies
79-
run: |
80-
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/pip3 install --user --require-hashes -r ci/requirements.macoswheels.txt
81-
if: ${{ matrix.py == 'cp38-*' && matrix.arch == 'arm64' }}
8275
8376
- name: Build Wheel
8477
run: |
8578
cibuildwheel --output-dir dist
86-
if: ${{ matrix.py != 'cp38-*' || matrix.arch != 'arm64' }}
87-
88-
- name: Build Wheel
89-
run: |
90-
/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/python3 -m pip wheel -w dist .
91-
env:
92-
_PYTHON_HOST_PLATFORM: 'macosx-11.0-arm64'
93-
ARCHFLAGS: '-arch arm64'
94-
MACOSX_DEPLOYMENT_TARGET: '11.0'
95-
SDKROOT: '/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk'
96-
if: ${{ matrix.py == 'cp38-*' && matrix.arch == 'arm64' }}
9779
9880
- name: Upload Wheel
9981
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)