@@ -36,10 +36,27 @@ jobs:
3636 with :
3737 python-version : ' 3.7'
3838
39+ - uses : actions/cache@v2
40+ id : numpy-aarch64-cache
41+ with :
42+ path : numpy-aarch64-cache/
43+ key : numpy-aarch64-cache
44+
3945 - name : Install cibuildwheel
4046 run : |
4147 python -m pip install cibuildwheel==1.9.0
4248
49+ - name : Build numpy 1.16 for aarch64
50+ if : matrix.cibw_archs == 'aarch64' && steps.numpy-aarch64-cache.outputs.cache-hit != 'true'
51+ run : |
52+ wget https://files.pythonhosted.org/packages/04/b6/d7faa70a3e3eac39f943cc6a6a64ce378259677de516bd899dd9eb8f9b32/numpy-1.16.0.zip
53+ unzip numpy-1.16.0.zip
54+ cd numpy-1.16.0
55+ python -m cibuildwheel --output-dir ../numpy-aarch64-cache
56+ env :
57+ CIBW_BUILD : " cp36-* cp37-* cp38-*"
58+ CIBW_ARCHS : aarch64
59+
4360 - name : Copy setup.cfg to configure wheel
4461 run : |
4562 cp setup.cfg.template setup.cfg
6279 CIBW_BUILD : " cp37-* cp38-*"
6380 CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
6481 CIBW_MANYLINUX_I686_IMAGE : manylinux1
65- CIBW_BEFORE_BUILD : pip install certifi oldest-supported- numpy
82+ CIBW_BEFORE_BUILD : pip install certifi; pip install --find-links= numpy-aarch64-cache/ numpy==1.16
6683 MPL_DISABLE_FH4 : " yes"
6784 CIBW_ARCHS : ${{ matrix.cibw_archs }}
6885
7390 CIBW_BUILD : " cp36-*"
7491 CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
7592 CIBW_MANYLINUX_I686_IMAGE : manylinux1
76- CIBW_BEFORE_BUILD : pip install certifi oldest-supported- numpy
93+ CIBW_BEFORE_BUILD : pip install certifi; pip install --find-links= numpy-aarch64-cache/ numpy==1.16
7794 MPL_DISABLE_FH4 : " yes"
7895 CIBW_ARCHS : ${{ matrix.cibw_archs }}
7996 if : >
85102 python -m cibuildwheel --output-dir dist
86103 env :
87104 CIBW_BUILD : " pp3?-*"
88- CIBW_BEFORE_BUILD : pip install certifi oldest-supported- numpy
105+ CIBW_BEFORE_BUILD : pip install certifi numpy==1.16
89106 CIBW_ARCHS : ${{ matrix.cibw_archs }}
90107 if : >
91108 runner.os != 'Windows' && (
0 commit comments