|
| 1 | +# From https://github.com/pytorch/test-infra/wiki/Using-Nova-Reusable-Build-Workflows |
| 2 | +name: Build Aarch64 Linux Wheels |
| 3 | + |
| 4 | +on: |
| 5 | + pull_request: |
| 6 | + paths: |
| 7 | + - .ci/**/* |
| 8 | + - .github/workflows/build-wheels-aarch64-linux.yml |
| 9 | + - examples/**/* |
| 10 | + - pyproject.toml |
| 11 | + - setup.py |
| 12 | + tags: |
| 13 | + - ciflow/binaries/* |
| 14 | + push: |
| 15 | + branches: |
| 16 | + - nightly |
| 17 | + - release/* |
| 18 | + tags: |
| 19 | + # NOTE: Binary build pipelines should only get triggered on release candidate builds |
| 20 | + # Release candidate tags look like: v1.11.0-rc1 |
| 21 | + - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ |
| 22 | + - ciflow/binaries/* |
| 23 | + workflow_dispatch: |
| 24 | + |
| 25 | +jobs: |
| 26 | + generate-matrix: |
| 27 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 28 | + with: |
| 29 | + package-type: wheel |
| 30 | + os: linux-aarch64 |
| 31 | + test-infra-repository: pytorch/test-infra |
| 32 | + test-infra-ref: main |
| 33 | + with-cuda: disabled |
| 34 | + with-rocm: disabled |
| 35 | + python-versions: '["3.10", "3.11", "3.12"]' |
| 36 | + |
| 37 | + build: |
| 38 | + needs: generate-matrix |
| 39 | + permissions: |
| 40 | + id-token: write |
| 41 | + contents: read |
| 42 | + strategy: |
| 43 | + fail-fast: false |
| 44 | + matrix: |
| 45 | + include: |
| 46 | + - repository: pytorch/executorch |
| 47 | + pre-script: .ci/scripts/wheel/pre_build_script.sh |
| 48 | + post-script: .ci/scripts/wheel/post_build_script.sh |
| 49 | + smoke-test-script: .ci/scripts/wheel/test_linux.py |
| 50 | + package-name: executorch |
| 51 | + name: ${{ matrix.repository }} |
| 52 | + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main |
| 53 | + with: |
| 54 | + repository: ${{ matrix.repository }} |
| 55 | + ref: "" |
| 56 | + test-infra-repository: pytorch/test-infra |
| 57 | + test-infra-ref: main |
| 58 | + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} |
| 59 | + submodules: recursive |
| 60 | + env-var-script: .ci/scripts/wheel/envvar_linux.sh |
| 61 | + pre-script: ${{ matrix.pre-script }} |
| 62 | + post-script: ${{ matrix.post-script }} |
| 63 | + package-name: ${{ matrix.package-name }} |
| 64 | + smoke-test-script: ${{ matrix.smoke-test-script }} |
| 65 | + trigger-event: ${{ github.event_name }} |
| 66 | + architecture: aarch64 |
0 commit comments