@@ -20,16 +20,12 @@ jobs:
20
20
runs-on : ubuntu-latest
21
21
steps :
22
22
- uses : actions/checkout@v2
23
- - uses : actions/setup-python@v2
24
-
25
- - name : Install deps
26
- run : python -m pip install twine build
27
23
28
24
- name : Build SDist
29
- run : python -m build -s
25
+ run : pipx run build --sdist
30
26
31
27
- name : Check metadata
32
- run : twine check dist/*
28
+ run : pipx run twine check dist/*
33
29
34
30
- uses : actions/upload-artifact@v2
35
31
with :
@@ -47,22 +43,12 @@ jobs:
47
43
steps :
48
44
- uses : actions/checkout@v2
49
45
50
- - uses : actions/setup-python@v2
51
-
52
- - name : Install cibuildwheel
53
- run : python -m pip install cibuildwheel==1.6.3
54
-
55
- - name : Build wheel
56
- run : python -m cibuildwheel --output-dir wheelhouse
46
+
57
47
env :
58
48
# Python 2.7 on Windows requires a workaround for C++11 support,
59
49
# built separately below
60
50
CIBW_SKIP : cp27-win*
61
51
62
- - name : Show files
63
- run : ls -lh wheelhouse
64
- shell : bash
65
-
66
52
- name : Verify clean directory
67
53
run : git diff --exit-code
68
54
shell : bash
@@ -79,19 +65,14 @@ jobs:
79
65
runs-on : windows-latest
80
66
81
67
steps :
82
- - uses : actions/checkout@v1
68
+ - uses : actions/checkout@v2
83
69
with :
84
70
submodules : true
85
71
86
- - uses : actions/setup-python@v2
87
-
88
- - name : Install cibuildwheel
89
- run : python -m pip install cibuildwheel==1.6.3
90
-
91
72
- uses : ilammy/msvc-dev-cmd@v1
92
73
93
74
- name : Build 64-bit wheel
94
- run : python -m cibuildwheel --output-dir wheelhouse
75
+ uses : joerick/ cibuildwheel@v1.10.0
95
76
env :
96
77
CIBW_BUILD : cp27-win_amd64
97
78
DISTUTILS_USE_SDK : 1
@@ -102,16 +83,12 @@ jobs:
102
83
arch : x86
103
84
104
85
- name : Build 32-bit wheel
105
- run : python -m cibuildwheel --output-dir wheelhouse
86
+ uses : joerick/ cibuildwheel@v1.10.0
106
87
env :
107
88
CIBW_BUILD : cp27-win32
108
89
DISTUTILS_USE_SDK : 1
109
90
MSSdk : 1
110
91
111
- - name : Show files
112
- run : ls -lh wheelhouse
113
- shell : bash
114
-
115
92
- name : Verify clean directory
116
93
run : git diff --exit-code
117
94
shell : bash
@@ -135,7 +112,7 @@ jobs:
135
112
name : artifact
136
113
path : dist
137
114
138
-
115
+
139
116
with :
140
117
user : __token__
141
118
password : ${{ secrets.pypi_password }}
0 commit comments