2828 name : Build wheels on ${{ matrix.os }}
2929 runs-on : ${{ matrix.os }}
3030 env :
31- min-numpy-version : " 1.17.3"
32- min-numpy-hash : " b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe"
3331 CIBW_ARCHS_MACOS : " x86_64 universal2 arm64"
3432 strategy :
3533 matrix :
@@ -55,35 +53,18 @@ jobs:
5553 with :
5654 python-version : ' 3.8'
5755
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-
6456 - name : Install cibuildwheel
6557 run : |
6658 python -m pip install cibuildwheel==2.1.1
6759
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-
7960 - name : Build wheels for CPython 3.10
8061 run : |
8162 python -m cibuildwheel --output-dir dist
8263 env :
8364 CIBW_BUILD : " cp310-*"
8465 CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
8566 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
8768 MPL_DISABLE_FH4 : " yes"
8869 CIBW_ARCHS : ${{ matrix.cibw_archs }}
8970
@@ -94,18 +75,18 @@ jobs:
9475 CIBW_BUILD : " cp39-*"
9576 CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
9677 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
9879 MPL_DISABLE_FH4 : " yes"
9980 CIBW_ARCHS : ${{ matrix.cibw_archs }}
10081
101- - name : Build wheels for CPython
82+ - name : Build wheels for CPython 3.8
10283 run : |
10384 python -m cibuildwheel --output-dir dist
10485 env :
10586 CIBW_BUILD : " cp38-*"
10687 CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
10788 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
10990 MPL_DISABLE_FH4 : " yes"
11091 CIBW_ARCHS : ${{ matrix.cibw_archs }}
11192
11495 python -m cibuildwheel --output-dir dist
11596 env :
11697 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
11899 CIBW_ARCHS : ${{ matrix.cibw_archs }}
119100 PIP_USE_FEATURE : in-tree-build
120101 if : matrix.cibw_archs != 'aarch64'
0 commit comments