88
99jobs :
1010 wheels-windows :
11- runs-on : ${{ matrix.os }}
11+ runs-on : windows-latest
1212 strategy :
1313 fail-fast : false
1414 matrix :
15- include :
16- - os : windows-latest
17- architecture : AMD64
15+ python-version : ["3.10", "3.11", "3.12", "3.13"]
16+ architecture : ["AMD64"]
1817
1918 steps :
2019 - uses : actions/checkout@v4
21- - uses : docker/setup-qemu-action@v2
20+ - name : Set up Python ${{ matrix.python-version }}
21+ uses : actions/setup-python@v5
2222 with :
23- platforms : arm64
24- if : runner.os == 'Linux'
25- - name : Install Python development packages
26- run : |
27- sudo apt-get update
28- sudo apt-get install -y python3-dev
29- if : runner.os == 'Linux'
23+ python-version : ${{ matrix.python-version }}
3024 - uses : bus1/cabuild/action/msdevshell@v1
3125 with :
3226 architecture : x64
33- if : runner.os == 'Windows' && matrix.architecture == 'AMD64'
27+ if : matrix.architecture == 'AMD64'
3428 - uses : bus1/cabuild/action/msdevshell@v1
3529 with :
3630 architecture : x86
37- if : runner.os == 'Windows' && matrix.architecture == 'x86'
31+ if : matrix.architecture == 'x86'
3832 - name : Generate meson files
3933 run : |
4034 python scripts/generate_meson.py ./src/dbzero/ core
@@ -50,13 +44,11 @@ jobs:
5044 - run : pip3 install pipx
5145 - run : pipx run cibuildwheel==2.11.2
5246 env :
53- CIBW_BUILD : cp310-* cp311-* cp312-* cp313-*
54- CIBW_ARCHS_MACOS : x86_64
55- CIBW_ARCHS_LINUX : x86_64
47+ CIBW_BUILD : cp${{ matrix.python-version | replace('.', '') }}-*
5648 CIBW_ARCHS_WINDOWS : ${{ matrix.architecture }}
5749 - uses : actions/upload-artifact@v4
5850 with :
59- name : wheels-windows
51+ name : wheels-windows-${{ matrix.python-version }}
6052 path : wheelhouse/*.whl
6153
6254 wheels-linux :
0 commit comments