|
13 | 13 | # it also takes care of procuring the correct python version for us
|
14 | 14 | os: [ubuntu-latest, windows-latest, macos-latest]
|
15 | 15 | python-version: [36, 37, 38, 39, 310]
|
16 |
| - |
17 | 16 | steps:
|
18 | 17 | - uses: actions/checkout@v2
|
19 | 18 | - uses: actions/setup-python@v2
|
|
37 | 36 | with:
|
38 | 37 | name: dist
|
39 | 38 | path: ./wheelhouse/*.whl
|
| 39 | + build_wheels_aarch64: |
| 40 | + name: py${{ matrix.python-version }} on ${{ matrix.os }} (aarch64) |
| 41 | + runs-on: ${{ matrix.os }} |
| 42 | + strategy: |
| 43 | + fail-fast: false |
| 44 | + matrix: |
| 45 | + # cibuildwheel builds linux wheels inside a manylinux container |
| 46 | + # it also takes care of procuring the correct python version for us |
| 47 | + os: [ubuntu-latest] |
| 48 | + python-version: [36, 37, 38, 39, 310] |
| 49 | + |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@v2 |
| 52 | + - uses: actions/setup-python@v2 |
| 53 | + name: Install Python |
| 54 | + with: |
| 55 | + python-version: "3.9" |
| 56 | + - name: Setup up QEMU |
| 57 | + uses: docker/setup-qemu-action@v1 |
| 58 | + with: |
| 59 | + platforms: arm64 |
| 60 | + - name: Install cibuildwheel |
| 61 | + run: | |
| 62 | + python -m pip install "cibuildwheel==2.1.3" |
| 63 | + - name: Build wheels |
| 64 | + env: |
| 65 | + CIBW_BUILD: "cp${{ matrix.python-version }}-*" |
| 66 | + CIBW_ARCHS: aarch64 |
| 67 | + CIBW_BUILD_VERBOSITY: 1 |
| 68 | + CIBW_BEFORE_TEST: pip install pytest |
| 69 | + CIBW_TEST_COMMAND: pytest {package} |
| 70 | + run: | |
| 71 | + python -m cibuildwheel --output-dir wheelhouse . |
| 72 | + - uses: actions/upload-artifact@v2 |
| 73 | + with: |
| 74 | + name: dist |
| 75 | + path: ./wheelhouse/*.whl |
40 | 76 | build_sdist_python_wheel:
|
41 | 77 | name: sdist and python wheel
|
42 | 78 | runs-on: ubuntu-latest
|
|
0 commit comments