95
95
96
96
- uses : astral-sh/setup-uv@v6
97
97
98
- - uses : pypa /cibuildwheel@v3.0.0b5
98
+ - uses : mhsmith /cibuildwheel@android
99
99
env :
100
100
CIBW_BUILD : ${{ matrix.build }}
101
101
CIBW_ARCHS : ${{ matrix.arch }}
@@ -111,20 +111,22 @@ jobs:
111
111
name : wheels-${{ strategy.job-index }}
112
112
113
113
build_ios_wheels :
114
- name : iOS
115
- runs-on : macos-latest
114
+ name : iOS ${{ matrix.runs-on }}
115
+ runs-on : ${{ matrix.runs-on }}
116
+ strategy :
117
+ fail-fast : false
118
+ matrix :
119
+ runs-on : [macos-latest, macos-13]
116
120
117
121
steps :
118
122
- uses : actions/checkout@v4
119
123
with :
120
124
fetch-depth : 0
121
125
submodules : true
122
126
123
- - uses : astral-sh/setup-uv@v6
124
-
125
127
- run : brew upgrade cmake
126
128
127
- - uses : pypa /cibuildwheel@v3.0.0b5
129
+ - uses : mhsmith /cibuildwheel@android
128
130
env :
129
131
CIBW_PLATFORM : ios
130
132
@@ -136,11 +138,38 @@ jobs:
136
138
uses : actions/upload-artifact@v4
137
139
with :
138
140
path : wheelhouse/*.whl
139
- name : wheels-iOS
141
+ name : wheels-ios-${{ matrix.runs-on }}
142
+
143
+ build_android_wheels :
144
+ name : Android ${{ matrix.runs-on }}
145
+ runs-on : ${{ matrix.runs-on }}
146
+ strategy :
147
+ fail-fast : false
148
+ matrix :
149
+ runs-on : [ubuntu-latest, macos-latest]
150
+ steps :
151
+ - uses : actions/checkout@v4
152
+ with :
153
+ fetch-depth : 0
154
+ submodules : true
155
+
156
+ - uses : mhsmith/cibuildwheel@android
157
+ env :
158
+ CIBW_PLATFORM : android
159
+
160
+ - name : Verify clean directory
161
+ run : git diff --exit-code
162
+ shell : bash
163
+
164
+ - name : Upload wheels
165
+ uses : actions/upload-artifact@v4
166
+ with :
167
+ path : wheelhouse/*.whl
168
+ name : wheels-android-${{ matrix.runs-on }}
140
169
141
170
upload_all :
142
171
name : Upload if release
143
- needs : [build_wheels, build_ios_wheels, build_sdist]
172
+ needs : [build_wheels, build_ios_wheels, build_android_wheels, build_sdist]
144
173
runs-on : ubuntu-latest
145
174
if : github.event_name == 'release' && github.event.action == 'published'
146
175
environment :
0 commit comments