-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have GitHub build wheels on commit (#1758)
- Loading branch information
Showing
5 changed files
with
91 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Build wheel | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
wheel_without_test: | ||
name: build wheel for ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, macos-latest, ubuntu-latest] | ||
env: | ||
CIBW_SKIP: "pp27-*win* cp27-*manylinux* pp-*manylinux*" | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | ||
CIBW_MANYLINUX_I686_IMAGE: manylinux2014 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v1 | ||
name: Install Python 3.7 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install Visual C++ for Python 2.7 | ||
if: startsWith(matrix.os, 'windows') | ||
run: | | ||
choco install vcpython27 -f -y | ||
- name: "install cibuildwheel" | ||
run: pip install cibuildwheel==1.4.1 | ||
|
||
- name: build wheel | ||
run: cibuildwheel . | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: wheels2 | ||
path: wheelhouse | ||
|
||
wheel: | ||
name: build wheel for ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, macos-latest, ubuntu-latest] | ||
env: | ||
CIBW_SKIP: "pp27-*win* *27* cp27-*manylinux* pp-*manylinux*" | ||
CIBW_TEST_COMMAND: python -Wa {project}/psutil/tests/runner.py | ||
CIBW_TEST_COMMAND_MACOS: LC_ALL='en_US.utf8' python -Wa {project}/psutil/tests/runner.py | ||
CIBW_TEST_EXTRAS: test | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | ||
CIBW_MANYLINUX_I686_IMAGE: manylinux2014 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v1 | ||
name: Install Python 3.7 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install Visual C++ for Python 2.7 | ||
if: startsWith(matrix.os, 'windows') | ||
run: | | ||
choco install vcpython27 -f -y | ||
- name: "install cibuildwheel" | ||
run: pip install cibuildwheel==1.4.1 | ||
|
||
- name: build wheel | ||
run: cibuildwheel . | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: wheels | ||
path: wheelhouse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters