|
| 1 | +name: Validate Aarch64 linux binaries |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_call: |
| 5 | + inputs: |
| 6 | + channel: |
| 7 | + description: "Channel to use (nightly, test, release, all)" |
| 8 | + required: true |
| 9 | + type: string |
| 10 | + ref: |
| 11 | + description: 'Reference to checkout, defaults to empty' |
| 12 | + default: "" |
| 13 | + required: false |
| 14 | + type: string |
| 15 | + workflow_dispatch: |
| 16 | + inputs: |
| 17 | + channel: |
| 18 | + description: "Channel to use (nightly, test, release, all)" |
| 19 | + required: true |
| 20 | + type: choice |
| 21 | + options: |
| 22 | + - release |
| 23 | + - nightly |
| 24 | + - test |
| 25 | + - all |
| 26 | + ref: |
| 27 | + description: 'Reference to checkout, defaults to empty' |
| 28 | + default: "" |
| 29 | + required: false |
| 30 | + type: string |
| 31 | + |
| 32 | +jobs: |
| 33 | + generate-aarch64-linux-matrix: |
| 34 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 35 | + with: |
| 36 | + package-type: wheel |
| 37 | + os: linux-aarch64 |
| 38 | + channel: ${{ inputs.channel }} |
| 39 | + with-cuda: disable |
| 40 | + |
| 41 | + linux: |
| 42 | + needs: generate-aarch64-linux-matrix |
| 43 | + strategy: |
| 44 | + matrix: ${{ fromJson(needs.generate-linux-matrix.outputs.matrix) }} |
| 45 | + fail-fast: false |
| 46 | + uses: pytorch/test-infra/.github/workflows/linux_job.yml@main |
| 47 | + name: ${{ matrix.build_name }} |
| 48 | + with: |
| 49 | + runner: ${{ matrix.validation_runner }} |
| 50 | + repository: "pytorch/builder" |
| 51 | + ref: ${{ inputs.ref || github.ref }} |
| 52 | + job-name: ${{ matrix.build_name }} |
| 53 | + binary-matrix: ${{ toJSON(matrix) }} |
| 54 | + script: | |
| 55 | + set -ex |
| 56 | + export ENV_NAME="conda-env-${{ github.run_id }}" |
| 57 | + export TARGET_OS="aarch64-linux" |
| 58 | + eval "$(conda shell.bash hook)" |
| 59 | +
|
| 60 | + # Standart case: Validate binaries |
| 61 | + source ./.github/scripts/validate_binaries.sh |
0 commit comments