Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build

on: [push, pull_request]

env:
CIBW_BEFORE_BUILD: pip install setuptools numpy
# CIBW_BUILD_VERBOSITY: 1
# CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: python -c "import sys, numexpr; sys.exit(0 if numexpr.test().wasSuccessful() else 1)"

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.7'

- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==1.6.4

- name: Install Visual C++ for Python 2.7
if: runner.os == 'Windows'
run: |
choco install vcpython27 -f -y

- name: Build wheels for CPython 2.7
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp27-*"

- name: Build wheels for CPython 3.5
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp35-*"

- name: Build wheels for CPython 3.6
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp36-*"

- name: Build wheels for CPython 3.7
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp37-*"

- name: Build wheels for CPython 3.8
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp38-*"

- name: Build wheels for CPython 3.9
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp39-*"

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl