build-wheels-aarch64.yaml (1560B)
1 name: build-wheels-aarch64 2 3 on: 4 push: 5 branches: 6 - wheel 7 tags: 8 - '*' 9 10 concurrency: 11 group: build-wheels-aarch64-${{ github.ref }} 12 cancel-in-progress: true 13 14 jobs: 15 build_wheels_aarch64: 16 name: ${{ matrix.python-version }} 17 runs-on: ${{ matrix.os }} 18 strategy: 19 fail-fast: false 20 matrix: 21 os: [ubuntu-latest] 22 python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] 23 24 steps: 25 - uses: actions/checkout@v4 26 27 - name: Set up QEMU 28 uses: docker/setup-qemu-action@v2 29 with: 30 platforms: all 31 32 # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ 33 # for a list of versions 34 - name: Build wheels 35 uses: pypa/cibuildwheel@v2.16.5 36 env: 37 CIBW_BUILD: "${{ matrix.python-version}}-* " 38 CIBW_SKIP: "cp27-* cp35-* cp36-* *-win32 pp* *-musllinux* *-manylinux_i686" 39 CIBW_BUILD_VERBOSITY: 3 40 CIBW_ARCHS_LINUX: aarch64 41 42 - name: Display wheels 43 shell: bash 44 run: | 45 ls -lh ./wheelhouse/ 46 47 - uses: actions/upload-artifact@v4 48 with: 49 name: wheel-${{ matrix.python-version }} 50 path: ./wheelhouse/*.whl 51 52 - name: Publish wheels to PyPI 53 env: 54 TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} 55 TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} 56 shell: bash 57 run: | 58 python3 -m pip install --upgrade pip 59 python3 -m pip install wheel twine setuptools 60 61 twine upload ./wheelhouse/*.whl