|
| 1 | +name: Validate MacOS Binaries |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - .github/workflows/validate-macos-binaries.yml |
| 7 | +jobs: |
| 8 | + generate-arm64-conda-matrix: |
| 9 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 10 | + with: |
| 11 | + package-type: conda |
| 12 | + os: macos-arm64 |
| 13 | + channel: all |
| 14 | + generate-arm64-wheel-matrix: |
| 15 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 16 | + with: |
| 17 | + package-type: wheel |
| 18 | + os: macos-arm64 |
| 19 | + channel: all |
| 20 | + generate-x86_64-conda-matrix: |
| 21 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 22 | + with: |
| 23 | + package-type: conda |
| 24 | + os: macos-x86_64 |
| 25 | + channel: all |
| 26 | + generate-x86_64-wheel-matrix: |
| 27 | + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main |
| 28 | + with: |
| 29 | + package-type: wheel |
| 30 | + os: macos-x86_64 |
| 31 | + channel: all |
| 32 | + |
| 33 | + validate-macos-arm64-binaries-conda: |
| 34 | + needs: generate-arm64-conda-matrix |
| 35 | + strategy: |
| 36 | + matrix: |
| 37 | + ${{ fromJson(needs.generate-arm64-conda-matrix.outputs.matrix) }} |
| 38 | + fail-fast: false |
| 39 | + runs-on: ${{ matrix.validation_runner }} |
| 40 | + steps: |
| 41 | + - name: Validate binary conda |
| 42 | + uses: pytorch/builder/.github/actions/validate-binary@main |
| 43 | + with: |
| 44 | + gpu_arch_type: ${{ matrix.gpu_arch_type }} |
| 45 | + gpu_arch_ver: ${{ matrix.gpu_arch_version }} |
| 46 | + installation: ${{ matrix.installation }} |
| 47 | + python_version: ${{ matrix.python_version }} |
| 48 | + target_os: macos |
| 49 | + validate-macos-arm64-binaries-wheel: |
| 50 | + needs: generate-arm64-wheel-matrix |
| 51 | + strategy: |
| 52 | + matrix: |
| 53 | + ${{ fromJson(needs.generate-arm64-wheel-matrix.outputs.matrix) }} |
| 54 | + fail-fast: false |
| 55 | + runs-on: ${{ matrix.validation_runner }} |
| 56 | + steps: |
| 57 | + - name: Validate binary wheel |
| 58 | + uses: pytorch/builder/.github/actions/validate-binary@main |
| 59 | + with: |
| 60 | + gpu_arch_type: ${{ matrix.gpu_arch_type }} |
| 61 | + gpu_arch_ver: ${{ matrix.gpu_arch_version }} |
| 62 | + installation: ${{ matrix.installation }} |
| 63 | + python_version: ${{ matrix.python_version }} |
| 64 | + target_os: macos |
| 65 | + validate-macos-x86_64-binaries-conda: |
| 66 | + needs: generate-x86_64-conda-matrix |
| 67 | + strategy: |
| 68 | + matrix: |
| 69 | + ${{ fromJson(needs.generate-x86_64-conda-matrix.outputs.matrix) }} |
| 70 | + fail-fast: false |
| 71 | + runs-on: ${{ matrix.validation_runner }} |
| 72 | + steps: |
| 73 | + - name: Validate binary conda |
| 74 | + uses: pytorch/builder/.github/actions/validate-binary@main |
| 75 | + with: |
| 76 | + gpu_arch_type: ${{ matrix.gpu_arch_type }} |
| 77 | + gpu_arch_ver: ${{ matrix.gpu_arch_version }} |
| 78 | + installation: ${{ matrix.installation }} |
| 79 | + python_version: ${{ matrix.python_version }} |
| 80 | + target_os: macos |
| 81 | + validate-macos-x86_64-binaries-wheel: |
| 82 | + needs: generate-x86_64-wheel-matrix |
| 83 | + strategy: |
| 84 | + matrix: |
| 85 | + ${{ fromJson(needs.generate-x86_64-wheel-matrix.outputs.matrix) }} |
| 86 | + fail-fast: false |
| 87 | + runs-on: ${{ matrix.validation_runner }} |
| 88 | + steps: |
| 89 | + - name: Validate binary wheel |
| 90 | + uses: pytorch/builder/.github/actions/validate-binary@main |
| 91 | + with: |
| 92 | + gpu_arch_type: ${{ matrix.gpu_arch_type }} |
| 93 | + gpu_arch_ver: ${{ matrix.gpu_arch_version }} |
| 94 | + installation: ${{ matrix.installation }} |
| 95 | + python_version: ${{ matrix.python_version }} |
| 96 | + target_os: macos |
0 commit comments