Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build & Publish aarch64 Linux | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| build_wheels: | |
| name: Build wheels on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| # - os: ubuntu-latest | |
| # cibw_archs: "native" | |
| - os: ubuntu-latest | |
| cibw_archs: "aarch64" | |
| # - os: windows-latest | |
| # cibw_archs: "native ARM64" | |
| # - os: macos-latest | |
| # cibw_archs: "native arm64" | |
| steps: | |
| - name: Set up QEMU | |
| if: matrix.cibw_archs == 'aarch64' | |
| uses: docker/setup-qemu-action@v2 | |
| with: | |
| platforms: arm64 | |
| - uses: actions/[email protected] | |
| - uses: actions/[email protected] | |
| name: Install Python | |
| - name: Get submodules | |
| run: git submodule update --init --recursive | |
| - name: Build wheels | |
| uses: pypa/[email protected] | |
| env: | |
| CIBW_ARCHS: ${{ matrix.cibw_archs }} | |
| CIBW_SKIP: "pp*" | |
| - uses: actions/[email protected] | |
| with: | |
| name: wheels | |
| path: ./wheelhouse/*.whl | |
| publish: | |
| needs: build_wheels | |
| name: Publish to PyPI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Python | |
| uses: actions/[email protected] | |
| with: | |
| python-version: '3.x' | |
| - name: Install twine | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install twine | |
| - name: Download Artifacts | |
| uses: actions/[email protected] | |
| with: | |
| name: wheels | |
| path: ./wheelhouse | |
| - name: Publish | |
| env: | |
| TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
| TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
| run: twine upload ./wheelhouse/* --skip-existing |