1
1
name : Build macOS Wheels
2
2
on :
3
3
push :
4
- pull_request :
5
4
create :
6
5
7
6
jobs :
@@ -12,82 +11,70 @@ jobs:
12
11
- name : Checkout
13
12
uses : actions/checkout@v1
14
13
15
- - name : Set up Python 3.8
14
+ # Python 3.9
15
+ - name : Set up Python 3.9
16
16
uses : actions/setup-python@v1
17
17
with :
18
- python-version : " 3.8 "
18
+ python-version : " 3.9 "
19
19
20
20
- name : Cythonize
21
21
run : |
22
22
pip install -U pip
23
23
pip install -r requirements.txt
24
24
make cython
25
25
26
- - name : Build wheel
27
- run : |
28
- pip install setuptools wheel
29
- python setup.py bdist_wheel
26
+ - name : Build wheels
27
+
28
+ env :
29
+ CIBW_ARCHS_MACOS : x86_64 universal2
30
+ CIBW_SKIP : pp*
30
31
31
32
- name : Run test
32
33
run : |
34
+ ls wheelhouse/
33
35
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
35
37
pytest -v test
36
38
37
-
39
+ # Python 3.10
38
40
- name : Set up Python 3.10
39
41
uses : actions/setup-python@v1
40
42
with :
41
43
python-version : " 3.10"
42
44
43
- - name : Build wheel
44
- run : |
45
- pip install setuptools wheel
46
- python setup.py bdist_wheel
47
-
48
45
- name : Run test
49
46
run : |
50
47
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
52
49
pytest -v test
53
50
54
-
55
- - name : Set up Python 3.9
51
+ # Python 3.8
52
+ - name : Set up Python 3.8
56
53
uses : actions/setup-python@v1
57
54
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"
64
56
65
57
- name : Run test
66
58
run : |
67
59
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
69
61
pytest -v test
70
62
71
-
63
+ # Python 3.7
72
64
- name : Set up Python 3.7
73
65
uses : actions/setup-python@v1
74
66
with :
75
67
python-version : " 3.7"
76
68
77
- - name : Build wheel
78
- run : |
79
- pip install setuptools wheel
80
- python setup.py bdist_wheel
81
-
82
69
- name : Run test
83
70
run : |
84
71
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
86
73
pytest -v test
87
74
88
75
89
76
- name : Upload Wheels
90
77
uses : actions/upload-artifact@v1
91
78
with :
92
79
name : macos-wheels
93
- path : ./dist /
80
+ path : ./wheelhouse /
0 commit comments