11name : Build macOS Wheels
22on :
33 push :
4- pull_request :
54 create :
65
76jobs :
@@ -12,82 +11,70 @@ jobs:
1211 - name : Checkout
1312 uses : actions/checkout@v1
1413
15- - name : Set up Python 3.8
14+ # Python 3.9
15+ - name : Set up Python 3.9
1616 uses : actions/setup-python@v1
1717 with :
18- python-version : " 3.8 "
18+ python-version : " 3.9 "
1919
2020 - name : Cythonize
2121 run : |
2222 pip install -U pip
2323 pip install -r requirements.txt
2424 make cython
2525
26- - name : Build wheel
27- run : |
28- pip install setuptools wheel
29- python setup.py bdist_wheel
26+ - name : Build wheels
27+ uses : pypa/cibuildwheel@v2.2.2
28+ env :
29+ CIBW_ARCHS_MACOS : x86_64 universal2
30+ CIBW_SKIP : pp*
3031
3132 - name : Run test
3233 run : |
34+ ls wheelhouse/
3335 pip install pytest
34- pip install -v msgpack --only-binary :all: -f dist / --no-index
36+ pip install -v msgpack --only-binary :all: -f wheelhouse / --no-index
3537 pytest -v test
3638
37-
39+ # Python 3.10
3840 - name : Set up Python 3.10
3941 uses : actions/setup-python@v1
4042 with :
4143 python-version : " 3.10"
4244
43- - name : Build wheel
44- run : |
45- pip install setuptools wheel
46- python setup.py bdist_wheel
47-
4845 - name : Run test
4946 run : |
5047 pip install pytest
51- pip install -v msgpack --only-binary :all: -f dist / --no-index
48+ pip install -v msgpack --only-binary :all: -f wheelhouse / --no-index
5249 pytest -v test
5350
54-
55- - name : Set up Python 3.9
51+ # Python 3.8
52+ - name : Set up Python 3.8
5653 uses : actions/setup-python@v1
5754 with :
58- python-version : " 3.9"
59-
60- - name : Build wheel
61- run : |
62- pip install setuptools wheel
63- python setup.py bdist_wheel
55+ python-version : " 3.8"
6456
6557 - name : Run test
6658 run : |
6759 pip install pytest
68- pip install -v msgpack --only-binary :all: -f dist / --no-index
60+ pip install -v msgpack --only-binary :all: -f wheelhouse / --no-index
6961 pytest -v test
7062
71-
63+ # Python 3.7
7264 - name : Set up Python 3.7
7365 uses : actions/setup-python@v1
7466 with :
7567 python-version : " 3.7"
7668
77- - name : Build wheel
78- run : |
79- pip install setuptools wheel
80- python setup.py bdist_wheel
81-
8269 - name : Run test
8370 run : |
8471 pip install pytest
85- pip install -v msgpack --only-binary :all: -f dist / --no-index
72+ pip install -v msgpack --only-binary :all: -f wheelhouse / --no-index
8673 pytest -v test
8774
8875
8976 - name : Upload Wheels
9077 uses : actions/upload-artifact@v1
9178 with :
9279 name : macos-wheels
93- path : ./dist /
80+ path : ./wheelhouse /
0 commit comments