2020jobs :
2121 build_wheels :
2222 if : |
23- (
24- github.event.action == 'labeled' &&
25- github.event.label.name == 'Run cibuildwheel'
26- ) ||
27- contains(github.event.pull_request.labels.*.name, 'Run cibuildwheel')
23+ github.event_name == 'push' ||
24+ github.event_name == 'pull_request' && (
25+ (
26+ github.event.action == 'labeled' &&
27+ github.event.label.name == 'Run cibuildwheel'
28+ ) ||
29+ contains(github.event.pull_request.labels.*.name, 'Run cibuildwheel')
30+ )
2831 name : Build wheels on ${{ matrix.os }}
2932 runs-on : ${{ matrix.os }}
3033 env :
31- min-numpy-version : " 1.17.3"
32- min-numpy-hash : " b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe"
3334 CIBW_ARCHS_MACOS : " x86_64 universal2 arm64"
35+ MACOSX_DEPLOYMENT_TARGET : " 10.12"
3436 strategy :
3537 matrix :
3638 os : [ubuntu-18.04, windows-latest, macos-10.15]
@@ -46,44 +48,27 @@ jobs:
4648 with :
4749 platforms : arm64
4850
49- - uses : actions/checkout@v2
51+ - uses : actions/checkout@v3
5052 with :
5153 fetch-depth : 0
5254
53- - uses : actions/setup-python@v2
55+ - uses : actions/setup-python@v3
5456 name : Install Python
5557 with :
56- python-version : ' 3.7'
57-
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 }}
58+ python-version : ' 3.8'
6359
6460 - name : Install cibuildwheel
6561 run : |
6662 python -m pip install cibuildwheel==2.1.1
6763
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 : " cp37-* cp38-*"
77- CIBW_ARCHS : aarch64
78-
7964 - name : Build wheels for CPython 3.10
8065 run : |
8166 python -m cibuildwheel --output-dir dist
8267 env :
8368 CIBW_BUILD : " cp310-*"
8469 CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
8570 CIBW_MANYLINUX_I686_IMAGE : manylinux2014
86- CIBW_BEFORE_BUILD : pip install certifi numpy==1.21.3
71+ CIBW_BEFORE_BUILD : pip install certifi oldest-supported- numpy
8772 MPL_DISABLE_FH4 : " yes"
8873 CIBW_ARCHS : ${{ matrix.cibw_archs }}
8974
@@ -94,36 +79,36 @@ jobs:
9479 CIBW_BUILD : " cp39-*"
9580 CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
9681 CIBW_MANYLINUX_I686_IMAGE : manylinux1
97- CIBW_BEFORE_BUILD : pip install certifi numpy==1.19.3
82+ CIBW_BEFORE_BUILD : pip install certifi oldest-supported- numpy
9883 MPL_DISABLE_FH4 : " yes"
9984 CIBW_ARCHS : ${{ matrix.cibw_archs }}
10085
101- - name : Build wheels for CPython
86+ - name : Build wheels for CPython 3.8
10287 run : |
10388 python -m cibuildwheel --output-dir dist
10489 env :
105- CIBW_BUILD : " cp37-* cp38-*"
90+ CIBW_BUILD : " cp38-*"
10691 CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
10792 CIBW_MANYLINUX_I686_IMAGE : manylinux1
108- CIBW_BEFORE_BUILD : pip install certifi; pip install --find-links= numpy-aarch64-cache/ numpy==${{ env.min-numpy-version }}
93+ CIBW_BEFORE_BUILD : pip install certifi numpy==1.19.2
10994 MPL_DISABLE_FH4 : " yes"
11095 CIBW_ARCHS : ${{ matrix.cibw_archs }}
11196
11297 - name : Build wheels for PyPy
11398 run : |
11499 python -m cibuildwheel --output-dir dist
115100 env :
116- CIBW_BUILD : " pp37 -*"
117- CIBW_BEFORE_BUILD : pip install certifi numpy==${{ env.min-numpy-version }}
101+ CIBW_BUILD : " pp38 -*"
102+ CIBW_BEFORE_BUILD : pip install certifi oldest-supported-numpy
118103 CIBW_ARCHS : ${{ matrix.cibw_archs }}
119104 PIP_USE_FEATURE : in-tree-build
120- if : matrix.cibw_archs != 'aarch64'
105+ if : false && matrix.cibw_archs != 'aarch64'
121106
122107 - name : Validate that LICENSE files are included in wheels
123108 run : |
124109 python ./ci/check_wheel_licenses.py
125110
126- - uses : actions/upload-artifact@v2
111+ - uses : actions/upload-artifact@v3
127112 with :
128113 name : wheels
129114 path : ./dist/*.whl
0 commit comments