@@ -201,8 +201,9 @@ jobs:
201
201
upload_wheels
202
202
203
203
# Build Pyodide wheels and upload them to Anaconda.org
204
- # NOTE: this job must be kept in sync with the emscripten job in unit-tests.yml.
205
- # The difference is that this does not run the tests after building the wheels.
204
+ # NOTE: this job is similar to the one in unit-tests.yml except for that fact
205
+ # that this does not run the tests after building the wheels and uses cibuildwheel
206
+ # instead of a regular Pyodide setup.
206
207
build_pyodide_wheels :
207
208
name : Build Pyodide wheels
208
209
# Run on schedule, manual (workflow dispatch), and push events
@@ -222,22 +223,14 @@ jobs:
222
223
id : setup-python
223
224
uses : actions/setup-python@v5
224
225
with :
225
- python-version : ' 3.11.3 '
226
+ python-version : ' 3.12 '
226
227
227
- - name : Set up Emscripten toolchain
228
- uses : mymindstorm/setup-emsdk@v14
228
+ - name : Build WASM wheel for pandas
229
+ uses : pypa/cibuildwheel@main
229
230
with :
230
- version : ' 3.1.46'
231
- actions-cache-folder : emsdk-cache
232
-
233
- - name : Install pyodide-build
234
- run : pip install "pyodide-build==0.25.1"
235
-
236
- - name : Build pandas for Pyodide
237
- # Here, upload_wheels.sh requires artifacts to be in ./wheelhouse/
238
- run : |
239
- mkdir -p wheelhouse
240
- pyodide build --outdir wheelhouse
231
+ output-dir : ./wheelhouse
232
+ env :
233
+ CIBW_PLATFORM : pyodide
241
234
242
235
- uses : actions/upload-artifact@v4
243
236
with :
0 commit comments