From 3378723b1f81cd803d383b7284fb97dd75a7f40f Mon Sep 17 00:00:00 2001 From: mlowell <75546495+Mark-Lowell@users.noreply.github.com> Date: Fri, 8 Mar 2024 10:06:20 -0500 Subject: [PATCH] Added CI/CD --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0ed26d3 --- /dev/null +++ b/.github/workflows/build.yml @@ -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