examples: update GitHub examples to be a bit cleaner

This commit is contained in:
Henry Schreiner
2021-02-04 22:22:22 -05:00
parent 49738c0cee
commit d871a15e3c
3 changed files with 12 additions and 21 deletions
+5 -8
View File
@@ -24,20 +24,17 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
name: Install Python name: Install Python
with: with:
python-version: '3.7' python-version: '3.8'
- name: Install cibuildwheel - name: Install cibuildwheel
run: | run: python -m pip install cibuildwheel==1.8.0
python -m pip install cibuildwheel==1.8.0
- name: Install Visual C++ for Python 2.7 - name: Install Visual C++ for Python 2.7
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: choco install vcpython27 -f -y
choco install vcpython27 -f -y
- name: Build wheels - name: Build wheels
run: | run: python -m cibuildwheel --output-dir wheelhouse
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
@@ -52,7 +49,7 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
name: Install Python name: Install Python
with: with:
python-version: '3.7' python-version: '3.8'
- name: Build sdist - name: Build sdist
run: python setup.py sdist run: python setup.py sdist
+4 -7
View File
@@ -16,20 +16,17 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
name: Install Python name: Install Python
with: with:
python-version: '3.7' python-version: '3.8'
- name: Install cibuildwheel - name: Install cibuildwheel
run: | run: python -m pip install cibuildwheel==1.8.0
python -m pip install cibuildwheel==1.8.0
- name: Install Visual C++ for Python 2.7 - name: Install Visual C++ for Python 2.7
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: choco install vcpython27 -f -y
choco install vcpython27 -f -y
- name: Build wheels - name: Build wheels
run: | run: python -m cibuildwheel --output-dir wheelhouse
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
+3 -6
View File
@@ -19,13 +19,11 @@ jobs:
python-version: '3.7' python-version: '3.7'
- name: Install cibuildwheel - name: Install cibuildwheel
run: | run: python -m pip install cibuildwheel==1.8.0
python -m pip install cibuildwheel==1.8.0
- name: Install Visual C++ for Python 2.7 - name: Install Visual C++ for Python 2.7
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: choco install vcpython27 -f -y
choco install vcpython27 -f -y
- name: Set up QEMU - name: Set up QEMU
if: runner.os == 'Linux' if: runner.os == 'Linux'
@@ -34,8 +32,7 @@ jobs:
platforms: all platforms: all
- name: Build wheels - name: Build wheels
run: | run: python -m cibuildwheel --output-dir wheelhouse
python -m cibuildwheel --output-dir wheelhouse
env: env:
# configure cibuildwheel to build native archs ('auto'), and some # configure cibuildwheel to build native archs ('auto'), and some
# emulated ones # emulated ones