From 76f2a0250662d89d858326218c8d58369f981f8b Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 11 Aug 2020 18:41:43 -0400 Subject: [PATCH 1/2] Try out cibuildwheel. This is enabled for push & pull_request right now, but since we have nowhere to upload anything permanent, I'll probably switch this to tags-only for final usage, if merged. --- .github/workflows/cibuildwheel.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 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..054483595150 --- /dev/null +++ b/.github/workflows/cibuildwheel.yml @@ -0,0 +1,35 @@ +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-*" + + - uses: actions/upload-artifact@v2 + with: + name: wheels + path: ./wheelhouse/*.whl From 80ebfc40d85c958e36593e63e751b71ebf2586d8 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 12 Aug 2020 00:14:43 -0400 Subject: [PATCH 2/2] Ensure manylinux1 is used for wheels. --- .github/workflows/cibuildwheel.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index 054483595150..10e5ea3e687a 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -28,6 +28,9 @@ jobs: 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: