@@ -12,40 +12,21 @@ jobs:
1212 runs-on : ${{ matrix.os }}
1313 strategy :
1414 matrix :
15- os : [ubuntu-18.04 , windows-latest, macos-latest]
15+ os : [ubuntu-latest , windows-latest, macos-latest]
1616
1717 steps :
18- - uses : actions/checkout@v1
19-
20- - name : set environment variables
21- uses : allenevans/set-env@v1.1.0
22- with :
23- # Only build on CPython
24- # PyPy on macos seems to be failing; see https://github.com/joerick/cibuildwheel/issues/402
25- CIBW_BUILD : " cp36-* cp37-* cp38-* cp39-*"
26- # Run before build
18+ - uses : actions/checkout@v2
19+
20+ - name : Build wheels
21+ uses : pypa/cibuildwheel@v2.1.1
22+ env :
23+ # From rio-color here:
24+ # https://github.com/mapbox/rio-color/blob/0ab59ad8e2db99ad1d0c8bd8c2e4cf8d0c3114cf/appveyor.yml#L3
25+ # Skip Python 3.10 until officially released, as numpy wheels aren't yet
26+ # available
27+ CIBW_SKIP : " cp2* cp35* cp310* pp* *-win32 *-manylinux_i686"
28+ CIBW_ARCHS_MACOS : x86_64 arm64 universal2
2729 CIBW_BEFORE_BUILD : python -m pip install numpy Cython
28- # CIBW_BEFORE_TEST: python -m pip install numpy Cython '.[test]'
29- # # run the package tests using `pytest`
30- # CIBW_TEST_COMMAND: pytest
31-
32- - uses : actions/setup-python@v1
33- name : Install Python
34- with :
35- python-version : ' 3.7'
36-
37- - name : Install cibuildwheel
38- run : |
39- python -m pip install cibuildwheel==1.4.2
40-
41- - name : Install Visual C++ for Python 2.7
42- if : startsWith(matrix.os, 'windows')
43- run : |
44- choco install vcpython27 -f -y
45-
46- - name : Build wheel
47- run : |
48- python -m cibuildwheel --output-dir wheelhouse
4930
5031 - uses : actions/upload-artifact@v2
5132 with :
6041 - uses : actions/setup-python@v2
6142 name : Install Python
6243 with :
63- python-version : ' 3.7 '
44+ python-version : ' 3.8 '
6445
6546 - name : Install dependencies
6647 run : |
0 commit comments