File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 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+ 76+ with :
77+ submodules : true
78+
79+ - name : Set up Python
80+ 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
You can’t perform that action at this time.
0 commit comments