13
13
name : Build wheels on ${{ matrix.os }}
14
14
runs-on : ${{ matrix.os }}
15
15
env :
16
- min-numpy-version : " 1.17.3"
17
- min-numpy-hash : " b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe"
18
16
CIBW_ARCHS_MACOS : " x86_64 universal2 arm64"
19
17
strategy :
20
18
matrix :
@@ -40,35 +38,18 @@ jobs:
40
38
with :
41
39
python-version : ' 3.8'
42
40
43
- - uses : actions/cache@v2
44
- id : numpy-cache
45
- with :
46
- path : numpy-aarch64-cache/
47
- key : numpy-${{ matrix.cibw_archs }}-cache-${{ env.min-numpy-version }}
48
-
49
41
- name : Install cibuildwheel
50
42
run : |
51
43
python -m pip install cibuildwheel==2.1.1
52
44
53
- - name : Build minimum NumPy for aarch64
54
- if : matrix.cibw_archs == 'aarch64' && steps.numpy-cache.outputs.cache-hit != 'true'
55
- run : |
56
- wget https://files.pythonhosted.org/packages/${{ env.min-numpy-hash }}/numpy-${{ env.min-numpy-version }}.zip
57
- unzip numpy-${{ env.min-numpy-version }}.zip
58
- cd numpy-${{ env.min-numpy-version }}
59
- python -m cibuildwheel --output-dir ../numpy-aarch64-cache
60
- env :
61
- CIBW_BUILD : " cp38-*"
62
- CIBW_ARCHS : aarch64
63
-
64
45
- name : Build wheels for CPython 3.10
65
46
run : |
66
47
python -m cibuildwheel --output-dir dist
67
48
env :
68
49
CIBW_BUILD : " cp310-*"
69
50
CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
70
51
CIBW_MANYLINUX_I686_IMAGE : manylinux2014
71
- CIBW_BEFORE_BUILD : pip install certifi numpy==1.21.3
52
+ CIBW_BEFORE_BUILD : pip install certifi oldest-supported- numpy
72
53
MPL_DISABLE_FH4 : " yes"
73
54
CIBW_ARCHS : ${{ matrix.cibw_archs }}
74
55
@@ -79,18 +60,18 @@ jobs:
79
60
CIBW_BUILD : " cp39-*"
80
61
CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
81
62
CIBW_MANYLINUX_I686_IMAGE : manylinux1
82
- CIBW_BEFORE_BUILD : pip install certifi numpy==1.19.3
63
+ CIBW_BEFORE_BUILD : pip install certifi oldest-supported- numpy
83
64
MPL_DISABLE_FH4 : " yes"
84
65
CIBW_ARCHS : ${{ matrix.cibw_archs }}
85
66
86
- - name : Build wheels for CPython
67
+ - name : Build wheels for CPython 3.8
87
68
run : |
88
69
python -m cibuildwheel --output-dir dist
89
70
env :
90
71
CIBW_BUILD : " cp38-*"
91
72
CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
92
73
CIBW_MANYLINUX_I686_IMAGE : manylinux1
93
- CIBW_BEFORE_BUILD : pip install certifi; pip install --find-links= numpy-aarch64-cache/ numpy==${{ env.min-numpy-version }}
74
+ CIBW_BEFORE_BUILD : pip install certifi numpy==1.19.2
94
75
MPL_DISABLE_FH4 : " yes"
95
76
CIBW_ARCHS : ${{ matrix.cibw_archs }}
96
77
99
80
python -m cibuildwheel --output-dir dist
100
81
env :
101
82
CIBW_BUILD : " pp38-*"
102
- CIBW_BEFORE_BUILD : pip install certifi numpy==${{ env.min-numpy-version }}
83
+ CIBW_BEFORE_BUILD : pip install certifi oldest-supported-numpy
103
84
CIBW_ARCHS : ${{ matrix.cibw_archs }}
104
85
PIP_USE_FEATURE : in-tree-build
105
86
if : matrix.cibw_archs != 'aarch64'
0 commit comments