@@ -7,11 +7,12 @@ permissions:
7
7
8
8
env :
9
9
CIBW_BEFORE_BUILD : pip install setuptools oldest-supported-numpy
10
- CIBW_BUILD_VERBOSITY : 3
11
- # CIBW_TEST_REQUIRES: pytest
10
+ CIBW_BUILD_VERBOSITY : 1
12
11
CIBW_TEST_COMMAND : python -c "import sys, numexpr; sys.exit(0 if numexpr.test().wasSuccessful() else 1)"
13
12
CIBW_TEST_SKIP : " *macosx*arm64*"
14
- CIBW_SKIP : " *musllinux*"
13
+ # Building for musllinux and aarch64 takes way too much time.
14
+ # NumPy is adding musllinux for just x86_64 too, so this is not too bad.
15
+ CIBW_SKIP : " *musllinux*aarch64*"
15
16
16
17
jobs :
17
18
build_wheels :
@@ -22,38 +23,19 @@ jobs:
22
23
env :
23
24
CIBW_BUILD : ${{ matrix.cibw_build }}
24
25
CIBW_ARCHS_LINUX : ${{ matrix.arch }}
25
- CIBW_ARCHS_MACOS : ${{ matrix.arch }}
26
+ CIBW_ARCHS_MACOS : " x86_64 arm64 "
26
27
strategy :
27
28
matrix :
28
29
os : [ubuntu-latest, windows-latest, macos-latest]
29
- arch : [auto64]
30
- cibw_build : ["cp3{7,8,9,10,11}-*"]
31
- p_ver : ["3.7-3.11"]
32
- include :
33
- - arch : arm64
34
- os : macos-latest
35
- cibw_build : " cp3{7,8,9,10,11}-*"
36
- p_ver : " 3.7-3.11"
37
- - arch : aarch64
38
- os : ubuntu-latest
39
- cibw_build : " cp37*"
40
- p_ver : " 3.7"
41
- - arch : aarch64
42
- os : ubuntu-latest
43
- cibw_build : " cp38*"
44
- p_ver : " 3.8"
45
- - arch : aarch64
46
- os : ubuntu-latest
47
- cibw_build : " cp39*"
48
- p_ver : " 3.9"
49
- - arch : aarch64
50
- os : ubuntu-latest
51
- cibw_build : " cp310*"
52
- p_ver : " 3.10"
53
- - arch : aarch64
54
- os : ubuntu-latest
55
- cibw_build : " cp311*"
56
- p_ver : " 3.11"
30
+ arch : [x86_64, aarch64]
31
+ cibw_build : ["cp3{9,10,11,12}-*"]
32
+ p_ver : ["3.9-3.12"]
33
+ exclude :
34
+ - os : windows-latest
35
+ arch : aarch64
36
+ # cibuild is already in charge to build aarch64 (see CIBW_ARCHS_MACOS)
37
+ - os : macos-latest
38
+ arch : aarch64
57
39
58
40
steps :
59
41
- uses : actions/checkout@v3
@@ -70,11 +52,11 @@ jobs:
70
52
- uses : docker/setup-qemu-action@v2
71
53
if : ${{ matrix.arch == 'aarch64' }}
72
54
name : Set up QEMU
73
-
74
- - name : Build wheels for Python
55
+
56
+ - name : Build wheels
75
57
run : |
76
58
python -m cibuildwheel --output-dir wheelhouse
77
-
59
+
78
60
- name : Make sdist
79
61
if : ${{ matrix.os == 'windows-latest' }}
80
62
run : |
0 commit comments