Skip to content

Commit 2f937c0

Browse files
author
Marc Pabst
committed
add ios ci job
1 parent 7c00c77 commit 2f937c0

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,48 @@ jobs:
6666
with:
6767
path: ./wheelhouse/*.whl
6868
retention-days: 7
69+
70+
build_ios:
71+
name: Build wheels for iOS
72+
runs-on: macos-latest
73+
steps:
74+
- name: Checkout
75+
uses: actions/[email protected]
76+
with:
77+
submodules: true
78+
79+
- name: Set up Python
80+
uses: actions/[email protected]
81+
with:
82+
python-version: "3.x"
83+
84+
- name: Install cibuildwheel
85+
run: |
86+
python -m pip install -U pip
87+
# Use main branch until iOS support is released.
88+
# python -m pip install cibuildwheel==3.0.0
89+
python -m pip install git+https://github.com/pypa/cibuildwheel.git
90+
91+
- name: Build wheels
92+
run: python -m cibuildwheel
93+
env:
94+
IPHONEOS_DEPLOYMENT_TARGET: "23.0"
95+
CIBW_PLATFORM: ios
96+
CIBW_ARCHS: auto
97+
CIBW_BUILD_VERBOSITY: 1
98+
CIBW_BEFORE_BUILD_IOS: |
99+
# download wheel and pretend that it's compatible with the current platform settings
100+
curl https://files.pythonhosted.org/packages/8b/f1/672d303ddf17c24fc83afd712316fda78dc6fce1cd53011b839483e1ecc8/cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl -L -o cffi-1.17.1-py3-none-any.whl && \
101+
pip install cffi-1.17.1-py3-none-any.whl && \
102+
# install the rest of the dependencies
103+
python -m pip install setuptools wheel
104+
CIBW_BEFORE_BUILD:
105+
python -m pip install setuptools wheel cffi
106+
CIBW_XBUILD_TOOLS : "curl pkg-config tar"
107+
CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation"
108+
109+
- uses: actions/upload-artifact@v4
110+
if: ${{ github.ref == 'refs/heads/master' }}
111+
with:
112+
path: ./wheelhouse/*.whl
113+
retention-days: 7

0 commit comments

Comments
 (0)