2525 - os : ubuntu-22.04-arm
2626 arch : aarch64
2727 cp : " cp3{10,11,12,13}"
28+ - os : windows-11-arm
29+ arch : ARM64
30+ cp : " cp3{11,12,13}"
2831
2932 steps :
3033 - uses : actions/checkout@v4
5659 name : wheel-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.cp }}
5760 path : ./wheelhouse/*.whl
5861
59- build_wheels_armwindows :
60- name : Build wheels on ${{ matrix.os }} (${{ matrix.arch }}) for ${{ matrix.cp }}
61- runs-on : ${{ matrix.os }}
62- strategy :
63- fail-fast : false
64- matrix :
65- os : [windows-11-arm]
66- arch : [ARM64]
67- cp : ["cp3{11,12,13}"]
68-
69- steps :
70- - uses : actions/checkout@v4
71- with :
72- submodules : true
73-
74- - name : Build wheels
75- uses : pypa/cibuildwheel@v2.21.3
76- env :
77- CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
78- CIBW_MANYLINUX_AARCH64_IMAGE : manylinux_2_28
79- CIBW_BUILD : " ${{ matrix.cp }}-*"
80- CIBW_SKIP : " *musllinux*"
81- CIBW_ARCHS : ${{ matrix.arch }}
82- CIBW_ENVIRONMENT_MACOS : TARGET_ARCH=${{ matrix.arch }} MACOSX_DEPLOYMENT_TARGET=11.0
83- CIBW_BEFORE_ALL : bash scripts/build_${{ runner.os }}.sh
84- CIBW_BEFORE_BUILD : pip install pybind11 numpy
85- CIBW_BEFORE_BUILD_WINDOWS : pip install pybind11 "numpy >= 2.3.0rc1"
86- CIBW_TEST_REQUIRES : pytest pillow glfw
87- CIBW_TEST_REQUIRES_MACOS : pytest pillow pyopengl
88- CIBW_TEST_COMMAND : python -m pytest {project}/tests
89- CIBW_TEST_COMMAND_LINUX : >
90- xvfb-run -s "-screen 0 640x480x24" python -m pytest {project}/tests
91- CIBW_TEST_SKIP : " *-macosx_arm64"
92-
93- - uses : actions/upload-artifact@v4
94- with :
95- name : wheel-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.cp }}
96- path : ./wheelhouse/*.whl
97-
9862 # identical to "build_wheels", except with the older pypa/cibuildwheel@v2.19.2
9963 build_wheels_old :
10064 name : Build wheels on ${{ matrix.os }} (${{ matrix.arch }}) for ${{ matrix.cp }}
@@ -104,14 +68,14 @@ jobs:
10468 matrix :
10569 os : [ubuntu-22.04, windows-2022, macos-13]
10670 arch : [auto64]
107- cp : ["cp39 "]
71+ cp : ["cp3{8,9} "]
10872 include :
10973 - os : macos-13
11074 arch : arm64
111- cp : " cp39 "
75+ cp : " cp3{8,9} "
11276 - os : ubuntu-22.04-arm
11377 arch : aarch64
114- cp : " cp39 "
78+ cp : " cp3{8,9} "
11579
11680 steps :
11781 - uses : actions/checkout@v4
@@ -145,7 +109,7 @@ jobs:
145109
146110 build_docs :
147111 name : Build docs
148- needs : [build_wheels, build_wheels_armwindows, build_wheels_old]
112+ needs : [build_wheels, build_wheels_old]
149113 runs-on : ubuntu-latest
150114 steps :
151115 - uses : actions/checkout@v4
@@ -165,8 +129,8 @@ jobs:
165129 # installing libegl1 will also install libegl-mesa0
166130 sudo apt-get -y install libegl1
167131 python -m pip install --pre -f dist skia-python
168- python -m pip install sphinx==6.2.1 sphinx-rtd-theme
169- python setup.py build_sphinx
132+ python -m pip install sphinx sphinx-rtd-theme
133+ sphinx-build -b html docs docs/_build/html
170134
171135 - name : Deploy docs
172136 if : github.event_name == 'release' && github.event.action == 'published'
@@ -177,7 +141,7 @@ jobs:
177141
178142 publish :
179143 name : Upload packages to PyPI
180- needs : [build_wheels, build_wheels_armwindows, build_wheels_old]
144+ needs : [build_wheels, build_wheels_old]
181145 runs-on : ubuntu-latest
182146 if : github.event_name == 'release' && github.event.action == 'published'
183147 permissions :
0 commit comments