File tree Expand file tree Collapse file tree 2 files changed +35
-13
lines changed Expand file tree Collapse file tree 2 files changed +35
-13
lines changed Original file line number Diff line number Diff line change
1
+ name : ' cibuildwheel'
2
+ description : ' Runs cibuildwheel on the current runner'
3
+ inputs :
4
+ package-dir :
5
+ description : ' Input directory, defaults to "."'
6
+ required : false
7
+ default : ' .'
8
+ output-dir :
9
+ description : ' Folder to place the outputs in, defaults to "wheelhouse"'
10
+ required : false
11
+ default : ' wheelhouse'
12
+ artifact :
13
+ description : ' Upload/merge wheels into the given artifact if not blank'
14
+ required : false
15
+ default : ' artifact'
16
+
17
+ runs :
18
+ using : " composite"
19
+ steps :
20
+ - run : pip install cibuildwheel==1.7.1
21
+ shell : bash
22
+ - run : python -m cibuildwheel ${{ inputs.package-dir }} --output_dir ${{ inputs.output-dir }}
23
+ shell : bash
24
+ - uses : actions/upload-artifact@v2
25
+ if : " ${{ inputs.artifact }} != ''"
26
+ with :
27
+ path : wheelhouse/*
28
+ name : ${{ inputs.artifact }}
Original file line number Diff line number Diff line change 58
58
with :
59
59
submodules : true
60
60
61
- # TODO: unpin after 2.2.0 gets fixed. PyPy is broken in 2.2.0.
62
-
61
+ - uses : actions/setup-python@v2
63
62
with :
64
63
python-version : ${{ matrix.python-version }}
65
64
@@ -81,29 +80,24 @@ jobs:
81
80
runs-on : ${{ matrix.os }}
82
81
strategy :
83
82
matrix :
84
- os : [ubuntu-18.04 , windows-latest, macos-latest]
83
+ os : [ubuntu-latest , windows-latest, macos-latest]
85
84
86
85
steps :
87
86
- uses : actions/checkout@v1
88
87
with :
89
88
submodules : true
90
89
91
- - name : Setup Python 3.7
92
- uses : actions/setup-python@v2
93
- with :
94
- python-version : ' 3.7'
95
-
96
- - name : Install cibuildwheel
97
- run : python -m pip install cibuildwheel==1.5.5 twine
90
+ - uses : actions/setup-python@v2
98
91
99
- - name : Build wheel
100
- run : python -m cibuildwheel --output-dir wheelhouse
92
+ - uses : ./.github/actions/cibuildwheel
101
93
env :
102
94
CIBW_BUILD : cp38-win_amd64 cp27-manylinux_i686 cp37-macosx_x86_64
103
95
CIBW_TEST_EXTRAS : test
104
96
CIBW_TEST_COMMAND : pytest {project}/tests
105
97
CIBW_BUILD_VERBOSITY : 1
106
98
107
99
- name : Check wheels
108
- run : twine check wheelhouse/*
100
+ run : |
101
+ python -m pip install twine
102
+ twine check wheelhouse/*
109
103
shell : bash
You can’t perform that action at this time.
0 commit comments