28
28
name : Build wheels on ${{ matrix.os }}
29
29
runs-on : ${{ matrix.os }}
30
30
env :
31
- min-numpy-version : " 1.17.3"
32
- min-numpy-hash : " b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe"
33
31
CIBW_ARCHS_MACOS : " x86_64 universal2 arm64"
34
32
strategy :
35
33
matrix :
@@ -55,35 +53,18 @@ jobs:
55
53
with :
56
54
python-version : ' 3.8'
57
55
58
- - uses : actions/cache@v2
59
- id : numpy-cache
60
- with :
61
- path : numpy-aarch64-cache/
62
- key : numpy-${{ matrix.cibw_archs }}-cache-${{ env.min-numpy-version }}
63
-
64
56
- name : Install cibuildwheel
65
57
run : |
66
58
python -m pip install cibuildwheel==2.1.1
67
59
68
- - name : Build minimum NumPy for aarch64
69
- if : matrix.cibw_archs == 'aarch64' && steps.numpy-cache.outputs.cache-hit != 'true'
70
- run : |
71
- wget https://files.pythonhosted.org/packages/${{ env.min-numpy-hash }}/numpy-${{ env.min-numpy-version }}.zip
72
- unzip numpy-${{ env.min-numpy-version }}.zip
73
- cd numpy-${{ env.min-numpy-version }}
74
- python -m cibuildwheel --output-dir ../numpy-aarch64-cache
75
- env :
76
- CIBW_BUILD : " cp38-*"
77
- CIBW_ARCHS : aarch64
78
-
79
60
- name : Build wheels for CPython 3.10
80
61
run : |
81
62
python -m cibuildwheel --output-dir dist
82
63
env :
83
64
CIBW_BUILD : " cp310-*"
84
65
CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
85
66
CIBW_MANYLINUX_I686_IMAGE : manylinux2014
86
- CIBW_BEFORE_BUILD : pip install certifi numpy==1.21.3
67
+ CIBW_BEFORE_BUILD : pip install certifi oldest-supported- numpy
87
68
MPL_DISABLE_FH4 : " yes"
88
69
CIBW_ARCHS : ${{ matrix.cibw_archs }}
89
70
@@ -94,18 +75,18 @@ jobs:
94
75
CIBW_BUILD : " cp39-*"
95
76
CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
96
77
CIBW_MANYLINUX_I686_IMAGE : manylinux1
97
- CIBW_BEFORE_BUILD : pip install certifi numpy==1.19.3
78
+ CIBW_BEFORE_BUILD : pip install certifi oldest-supported- numpy
98
79
MPL_DISABLE_FH4 : " yes"
99
80
CIBW_ARCHS : ${{ matrix.cibw_archs }}
100
81
101
- - name : Build wheels for CPython
82
+ - name : Build wheels for CPython 3.8
102
83
run : |
103
84
python -m cibuildwheel --output-dir dist
104
85
env :
105
86
CIBW_BUILD : " cp38-*"
106
87
CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
107
88
CIBW_MANYLINUX_I686_IMAGE : manylinux1
108
- CIBW_BEFORE_BUILD : pip install certifi; pip install --find-links= numpy-aarch64-cache/ numpy==${{ env.min-numpy-version }}
89
+ CIBW_BEFORE_BUILD : pip install certifi numpy==1.19.2
109
90
MPL_DISABLE_FH4 : " yes"
110
91
CIBW_ARCHS : ${{ matrix.cibw_archs }}
111
92
114
95
python -m cibuildwheel --output-dir dist
115
96
env :
116
97
CIBW_BUILD : " pp38-*"
117
- CIBW_BEFORE_BUILD : pip install certifi numpy==${{ env.min-numpy-version }}
98
+ CIBW_BEFORE_BUILD : pip install certifi oldest-supported-numpy
118
99
CIBW_ARCHS : ${{ matrix.cibw_archs }}
119
100
PIP_USE_FEATURE : in-tree-build
120
101
if : matrix.cibw_archs != 'aarch64'
0 commit comments