From a4e593a242c6dcf8072d7a2df3b1b8becac03e28 Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Wed, 27 Oct 2021 17:58:26 -0400 Subject: [PATCH 1/5] build python 3.10 wheels --- .github/workflows/wheel_tests_and_release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index c27da3d1e..8c2e363fe 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -25,6 +25,9 @@ jobs: - os: ubuntu-18.04 cibw_python: "cp39-*" cibw_manylinux: manylinux2010 + - os: ubuntu-18.04 + cibw_python: "cp310-*" + cibw_manylinux: manylinux2014 steps: - uses: actions/checkout@v2 with: @@ -79,7 +82,7 @@ jobs: run: | python -m cibuildwheel --output-dir dist env: - CIBW_BUILD: "cp3?-*" + CIBW_BUILD: "cp3?-* cp310-*" CIBW_SKIP: "cp36-*" CIBW_ARCHS_MACOS: x86_64 arm64 universal2 CIBW_MANYLINUX_X86_64_IMAGE: manylinux1 @@ -121,7 +124,7 @@ jobs: run: | python -m cibuildwheel --output-dir dist env: - CIBW_BUILD: "cp3?-*" + CIBW_BUILD: "cp3?-* cp310-*" CIBW_SKIP: "cp36-*" CIBW_MANYLINUX_X86_64_IMAGE: manylinux1 CIBW_MANYLINUX_I686_IMAGE: manylinux1 From e7dade4696359779c3dbd4e7bb2fa550215277a8 Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Wed, 27 Oct 2021 18:02:39 -0400 Subject: [PATCH 2/5] test wheel builds --- .github/workflows/wheel_tests_and_release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index 8c2e363fe..951d23d68 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -1,6 +1,8 @@ name: Build Wheels and Release on: push: + branches: + - 'wheels_py310' tags: - 'v*' - 'buildwheels*' From 390cfc5e9fde3814d189ab1c22956fb8686b7dc1 Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Fri, 5 Nov 2021 15:22:08 -0400 Subject: [PATCH 3/5] split out aarch64 linux builds always use manylinux2014 for aarch64 --- .github/workflows/wheel_tests_and_release.yml | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index 951d23d68..06c785c85 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -30,6 +30,39 @@ jobs: - os: ubuntu-18.04 cibw_python: "cp310-*" cibw_manylinux: manylinux2014 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-python@v2 + name: Install Python + with: + python-version: '3.9' + - name: Install cibuildwheel + run: | + python -m pip install cibuildwheel + - name: Build the wheel + run: | + python -m cibuildwheel --output-dir dist + env: + CIBW_BUILD: ${{ matrix.cibw_python }} + CIBW_ARCHS_LINUX: x86_64 i686 + CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }} + CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }} + - uses: actions/upload-artifact@v2 + with: + name: wheels + path: ./dist/*.whl + + build_linux_aarch64_wheels: + name: Build python ${{ matrix.cibw_python }} aarch64 wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-18.04] + cibw_python: [ "cp37-*", "cp38-*" , "cp39-*", "cp310-*"] + cibw_manylinux: [ manylinux2014 ] steps: - uses: actions/checkout@v2 with: @@ -50,7 +83,7 @@ jobs: python -m cibuildwheel --output-dir dist env: CIBW_BUILD: ${{ matrix.cibw_python }} - CIBW_ARCHS_LINUX: auto aarch64 + CIBW_ARCHS_LINUX: aarch64 CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }} CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }} - uses: actions/upload-artifact@v2 From 88bde79e280968ce6ef5a705770f52cc6fc17935 Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Sun, 7 Nov 2021 14:59:25 -0500 Subject: [PATCH 4/5] skip musllinux wheels on aarch64 to avoid timeouts --- .github/workflows/wheel_tests_and_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index 06c785c85..6aad3b8d6 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -84,6 +84,7 @@ jobs: env: CIBW_BUILD: ${{ matrix.cibw_python }} CIBW_ARCHS_LINUX: aarch64 + CIBW_SKIP: *-musllinux_* CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }} CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }} - uses: actions/upload-artifact@v2 From 39e8c637b0ed77e3db52d72c18cc1f39c51397a8 Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Sun, 7 Nov 2021 17:26:55 -0500 Subject: [PATCH 5/5] add quotes around CIBW_SKIP statement' --- .github/workflows/wheel_tests_and_release.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index 6aad3b8d6..07a2ce34d 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -1,8 +1,6 @@ name: Build Wheels and Release on: push: - branches: - - 'wheels_py310' tags: - 'v*' - 'buildwheels*' @@ -84,7 +82,7 @@ jobs: env: CIBW_BUILD: ${{ matrix.cibw_python }} CIBW_ARCHS_LINUX: aarch64 - CIBW_SKIP: *-musllinux_* + CIBW_SKIP: "*-musllinux_*" CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }} CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }} - uses: actions/upload-artifact@v2