@@ -16,27 +16,32 @@ jobs:
16
16
# macos-12 is an intel runner, macos-14 is a arm64 runner
17
17
os : [ubuntu-latest, windows-latest, macos-12, macos-14]
18
18
archs : ["native"]
19
- include :
20
- - os : ubuntu-latest
21
- archs : " aarch64"
19
+ build_all :
20
+ - ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')) || contains(github.event.pull_request.labels.*.name, 'test all wheels')}}
22
21
env :
23
22
CIBW_TEST_COMMAND : python -c "import numcodecs"
24
23
CIBW_BUILD : " cp310-* cp311-* cp312-*"
25
- CIBW_SKIP : " pp* *-musllinux_* *win32 *_i686 *_s390x"
26
- CIBW_ARCHS : ${{ matrix.archs }}
24
+ CIBW_ARCHS_MACOS : native
25
+ CIBW_ARCHS_WINDOWS : native
26
+ CIBW_ARCHS_LINUX : " x86_64 aarch64"
27
27
# note: CIBW_ENVIRONMENT is now set in pyproject.toml
28
28
29
29
steps :
30
30
- uses : actions/checkout@v4
31
31
with :
32
32
submodules : true
33
33
34
-
34
+ - name : Restrict number of wheel builds on PRs
35
+ if : ${{ !matrix.build_all }}
36
+ run : |
37
+ echo "CIBW_BUILD=cp310-win_amd64 cp311-manylinux_x86_64 cp312-macosx_x86_64 cp312-macosx_arm64" >> $GITHUB_ENV
35
38
36
39
- name : Set up QEMU
37
- if : ${{ matrix.archs == 'aarch64 ' }}
40
+ if : ${{ matrix.os == 'ubuntu-latest ' }}
38
41
uses : docker/setup-qemu-action@v3
39
42
43
+
44
+
40
45
- uses : actions/upload-artifact@v4
41
46
with :
42
47
name : wheels-${{ matrix.os }}
0 commit comments