Skip to content

Commit

Permalink
Added CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Lowell committed Mar 8, 2024
1 parent 7002570 commit 3378723
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on: [push, pull_request]

# Skip Python versions:
# PyPy: Different C headers
# Python 2.7: Python libary uses Python 3 syntax
env:
CIBW_SKIP: "pp* cp27-* *-manylinux_i686 *-win32"
CIBW_BEFORE_ALL_LINUX: "yum install -y gcc g++ python3-devel"
CIBW_BUILD_VERBOSITY: 2
CIBW_TEST_COMMAND: "python {project}/tests/run_all_tests.py"

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.7.1
- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

0 comments on commit 3378723

Please sign in to comment.