From 784c777092352c802862ffe4b9573ec23e933f42 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 12 Aug 2020 14:43:48 -0400 Subject: [PATCH] Backport PR #18224: Try out cibuildwheel. --- .github/workflows/cibuildwheel.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/cibuildwheel.yml diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml new file mode 100644 index 000000000000..10e5ea3e687a --- /dev/null +++ b/.github/workflows/cibuildwheel.yml @@ -0,0 +1,38 @@ +name: Build CI wheels + +on: [push, tags] + +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.5.5 + + - name: Build wheels + run: | + python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_BUILD: "cp3?-*" + CIBW_SKIP: "cp35-* cp36-*" + CIBW_MANYLINUX_X86_64_IMAGE: manylinux1 + CIBW_MANYLINUX_I686_IMAGE: manylinux1 + CIBW_MANYLINUX_PYPY_X86_64_IMAGE: manylinux1 + + - uses: actions/upload-artifact@v2 + with: + name: wheels + path: ./wheelhouse/*.whl