@@ -8,38 +8,32 @@ name: Build and upload to PyPI
88# on: [push, pull_request]
99# on: [pull_request]
1010# Alternatively, to publish when a (published) GitHub Release is created, use the following:
11- on :
12- release :
13- types : [published]
11+ on : [push, pull_request]
12+ # release:
13+ # types: [published]
1414
1515jobs :
1616 build_wheels :
1717 name : Build wheels on ${{ matrix.os }}
1818 runs-on : ${{ matrix.os }}
1919 strategy :
2020 matrix :
21- os : [ubuntu-18 .04, windows-latest, macos-latest ]
21+ os : [ubuntu-20 .04, windows-2019, macOS-10.15 ]
2222
2323 steps :
2424 - uses : actions/checkout@v2
2525
26+ # Used to host cibuildwheel
2627 - uses : actions/setup-python@v2
27- name : Install Python
28- with :
29- python-version : ' 3.7'
3028
3129 - name : Install cibuildwheel
32- run : |
33- python -m pip install cibuildwheel==1.4.2
34-
35- - name : Install Visual C++ for Python 2.7
36- if : runner.os == 'Windows'
37- run : |
38- choco install vcpython27 -f -y
30+ run : python -m pip install cibuildwheel==1.10.0
3931
4032 - name : Build wheels
41- run : |
42- python -m cibuildwheel --output-dir wheelhouse
33+ run : python -m cibuildwheel --output-dir wheelhouse
34+ # to supply options, put them in 'env', like:
35+ # env:
36+ # CIBW_SOME_OPTION: value
4337
4438 - uses : actions/upload-artifact@v2
4539 with :
6761 needs : [build_wheels, build_sdist]
6862 runs-on : ubuntu-latest
6963 # upload to PyPI on every tag starting with 'v'
70- # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
64+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
7165 # alternatively, to publish when a GitHub Release is created, use the following rule:
72- if : github.event_name == 'release' && github.event.action == 'published'
66+ # if: github.event_name == 'release' && github.event.action == 'published'
7367 steps :
7468 - uses : actions/download-artifact@v2
7569 with :
0 commit comments