File tree 3 files changed +75
-1
lines changed
Filter options
3 files changed +75
-1
lines changed
Original file line number Diff line number Diff line change 1
1
---
2
2
" CI: Run cibuildwheel " :
3
3
- changed-files :
4
- - any-glob-to-any-file : ['.github/workflows/cibuildwheel.yml']
4
+ - any-glob-to-any-file :
5
+ - ' .github/workflows/cibuildwheel.yml'
6
+ - ' .github/workflows/wasm.yml'
5
7
" CI: Run cygwin " :
6
8
- changed-files :
7
9
- any-glob-to-any-file : ['.github/workflows/cygwin.yml']
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Build wasm wheels
3
+
4
+ on :
5
+ # Save CI by only running this on release branches or tags.
6
+ push :
7
+ branches :
8
+ - main
9
+ - v[0-9]+.[0-9]+.x
10
+ tags :
11
+ - v*
12
+ # Also allow running this action on PRs if requested by applying the
13
+ # "Run cibuildwheel" label.
14
+ pull_request :
15
+ types :
16
+ - opened
17
+ - synchronize
18
+ - reopened
19
+ - labeled
20
+
21
+ permissions :
22
+ contents : read
23
+
24
+ jobs :
25
+ build_wasm :
26
+ if : >-
27
+ github.event_name == 'push' ||
28
+ github.event_name == 'pull_request' && (
29
+ (
30
+ github.event.action == 'labeled' &&
31
+ github.event.label.name == 'CI: Run cibuildwheel'
32
+ ) ||
33
+ contains(github.event.pull_request.labels.*.name,
34
+ 'CI: Run cibuildwheel')
35
+ )
36
+ name : Build wasm
37
+ runs-on : ubuntu-24.04
38
+
39
+ steps :
40
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41
+ with :
42
+ fetch-depth : 0
43
+
44
+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
45
+ name : Install Python
46
+ with :
47
+ python-version : ' 3.13'
48
+
49
+ - name : Build wheels for wasm
50
+ uses : pypa/cibuildwheel@faf86a6ed7efa889faf6996aa23820831055001a # v2.23.3
51
+ env :
52
+ CIBW_PLATFORM : " pyodide"
53
+
54
+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
55
+ with :
56
+ name : cibw-wheels-${{ runner.os }}-${{ matrix.cibw_archs }}
57
+ path : ./wheelhouse/*.whl
58
+ if-no-files-found : error
Original file line number Diff line number Diff line change @@ -340,3 +340,17 @@ testpaths = ["lib"]
340
340
addopts = [
341
341
" --import-mode=importlib" ,
342
342
]
343
+
344
+ # This build is just for testing right now.
345
+ [tool .cibuildwheel .pyodide ]
346
+ build-frontend = " build; args: --exports whole_archive"
347
+ test-requires = " pytest"
348
+ test-command = " pytest -p no:cacheprovider --pyargs matplotlib mpl_toolkits.axes_grid1 mpl_toolkits.axisartist mpl_toolkits.mplot3d"
349
+ [tool .cibuildwheel .pyodide .config-settings ]
350
+ install-args = " --tags=data,python-runtime,runtime,tests"
351
+ [tool .cibuildwheel .pyodide .environment ]
352
+ # Exceptions are needed for pybind11:
353
+ # https://github.com/pybind/pybind11/pull/5298
354
+ CFLAGS = " -fexceptions"
355
+ CXXFLAGS = " -fexceptions"
356
+ LDFLAGS = " -fexceptions"
You can’t perform that action at this time.
0 commit comments