Committed by
GitHub
Fix building wheels for linux aarch64. (#1821)
正在显示
2 个修改的文件
包含
5 行增加
和
12 行删除
| @@ -20,18 +20,13 @@ jobs: | @@ -20,18 +20,13 @@ jobs: | ||
| 20 | strategy: | 20 | strategy: |
| 21 | fail-fast: false | 21 | fail-fast: false |
| 22 | matrix: | 22 | matrix: |
| 23 | - os: [ubuntu-20.04] | 23 | + os: [ubuntu-22.04-arm] |
| 24 | python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"] | 24 | python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"] |
| 25 | manylinux: [manylinux2014] #, manylinux_2_28] | 25 | manylinux: [manylinux2014] #, manylinux_2_28] |
| 26 | 26 | ||
| 27 | steps: | 27 | steps: |
| 28 | - uses: actions/checkout@v4 | 28 | - uses: actions/checkout@v4 |
| 29 | 29 | ||
| 30 | - - name: Set up QEMU | ||
| 31 | - uses: docker/setup-qemu-action@v2 | ||
| 32 | - with: | ||
| 33 | - platforms: all | ||
| 34 | - | ||
| 35 | # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ | 30 | # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ |
| 36 | # for a list of versions | 31 | # for a list of versions |
| 37 | - name: Build wheels | 32 | - name: Build wheels |
| @@ -20,18 +20,15 @@ jobs: | @@ -20,18 +20,15 @@ jobs: | ||
| 20 | strategy: | 20 | strategy: |
| 21 | fail-fast: false | 21 | fail-fast: false |
| 22 | matrix: | 22 | matrix: |
| 23 | - os: [ubuntu-20.04] | 23 | + # see https://github.com/pypa/cibuildwheel/issues/2257 |
| 24 | + # we don't use qemu from now on | ||
| 25 | + os: [ubuntu-22.04-arm] | ||
| 24 | python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"] | 26 | python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"] |
| 25 | manylinux: [manylinux2014] #, manylinux_2_28] | 27 | manylinux: [manylinux2014] #, manylinux_2_28] |
| 26 | 28 | ||
| 27 | steps: | 29 | steps: |
| 28 | - uses: actions/checkout@v4 | 30 | - uses: actions/checkout@v4 |
| 29 | 31 | ||
| 30 | - - name: Set up QEMU | ||
| 31 | - uses: docker/setup-qemu-action@v2 | ||
| 32 | - with: | ||
| 33 | - platforms: all | ||
| 34 | - | ||
| 35 | # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ | 32 | # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ |
| 36 | # for a list of versions | 33 | # for a list of versions |
| 37 | - name: Build wheels | 34 | - name: Build wheels |
| @@ -50,6 +47,7 @@ jobs: | @@ -50,6 +47,7 @@ jobs: | ||
| 50 | CIBW_SKIP: "cp27-* cp35-* cp36-* *-win32 pp* *-musllinux* *-manylinux_i686" | 47 | CIBW_SKIP: "cp27-* cp35-* cp36-* *-win32 pp* *-musllinux* *-manylinux_i686" |
| 51 | CIBW_BUILD_VERBOSITY: 3 | 48 | CIBW_BUILD_VERBOSITY: 3 |
| 52 | CIBW_ARCHS_LINUX: aarch64 | 49 | CIBW_ARCHS_LINUX: aarch64 |
| 50 | + # https://quay.io/repository/pypa/manylinux2014_aarch64?tab=tags | ||
| 53 | CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/${{ matrix.manylinux }}_aarch64 | 51 | CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/${{ matrix.manylinux }}_aarch64 |
| 54 | # From onnxruntime >= 1.17.0, it drops support for CentOS 7.0 and it supports only manylinux_2_28. | 52 | # From onnxruntime >= 1.17.0, it drops support for CentOS 7.0 and it supports only manylinux_2_28. |
| 55 | # manylinux_2_24 is no longer supported | 53 | # manylinux_2_24 is no longer supported |
-
请 注册 或 登录 后发表评论