|
1 | 1 | name: Validate MacOS Binaries
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - pull_request: |
5 |
| - paths: |
6 |
| - - .github/workflows/validate-macos-binaries.yml |
7 |
| - - .test/smoke_test/* |
| 4 | + workflow_call: |
| 5 | + inputs: |
| 6 | + channel: |
| 7 | + description: "Channel to use (nightly, test, release, all)" |
| 8 | + required: true |
| 9 | + type: string |
| 10 | + workflow_dispatch: |
| 11 | + inputs: |
| 12 | + channel: |
| 13 | + description: "Channel to use (nightly, test, release, all)" |
| 14 | + required: true |
| 15 | + type: choice |
| 16 | + options: |
| 17 | + - release |
| 18 | + - nightly |
| 19 | + - test |
| 20 | + - all |
| 21 | + |
8 | 22 | jobs:
|
9 |
| - generate-arm64-conda-matrix: |
| 23 | + generate-macos-arm64-conda-matrix: |
10 | 24 | uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
|
11 | 25 | with:
|
12 | 26 | package-type: conda
|
13 | 27 | os: macos-arm64
|
14 |
| - channel: nightly |
15 |
| - generate-arm64-wheel-matrix: |
| 28 | + channel: ${{ inputs.channel }} |
| 29 | + generate-macos-arm64-wheel-matrix: |
16 | 30 | uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
|
17 | 31 | with:
|
18 | 32 | package-type: wheel
|
19 | 33 | os: macos-arm64
|
20 |
| - channel: nightly |
21 |
| - generate-x86_64-conda-matrix: |
| 34 | + channel: ${{ inputs.channel }} |
| 35 | + generate-macos-x86_64-conda-matrix: |
22 | 36 | uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
|
23 | 37 | with:
|
24 | 38 | package-type: conda
|
25 | 39 | os: macos
|
26 |
| - channel: nightly |
27 |
| - generate-x86_64-wheel-matrix: |
| 40 | + channel: ${{ inputs.channel }} |
| 41 | + generate-macos-x86_64-wheel-matrix: |
28 | 42 | uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
|
29 | 43 | with:
|
30 | 44 | package-type: wheel
|
31 | 45 | os: macos
|
32 |
| - channel: nightly |
| 46 | + channel: ${{ inputs.channel }} |
33 | 47 |
|
34 | 48 | validate-macos-arm64-binaries-conda:
|
35 |
| - needs: generate-arm64-conda-matrix |
| 49 | + needs: generate-macos-arm64-conda-matrix |
36 | 50 | strategy:
|
37 | 51 | matrix:
|
38 | 52 | ${{ fromJson(needs.generate-arm64-conda-matrix.outputs.matrix) }}
|
|
48 | 62 | python_version: ${{ matrix.python_version }}
|
49 | 63 | target_os: macos
|
50 | 64 | validate-macos-arm64-binaries-wheel:
|
51 |
| - needs: generate-arm64-wheel-matrix |
| 65 | + needs: generate-macos-arm64-wheel-matrix |
52 | 66 | strategy:
|
53 | 67 | matrix:
|
54 | 68 | ${{ fromJson(needs.generate-arm64-wheel-matrix.outputs.matrix) }}
|
|
64 | 78 | python_version: ${{ matrix.python_version }}
|
65 | 79 | target_os: macos
|
66 | 80 | validate-macos-x86_64-binaries-conda:
|
67 |
| - needs: generate-x86_64-conda-matrix |
| 81 | + needs: generate-macos-x86_64-conda-matrix |
68 | 82 | strategy:
|
69 | 83 | matrix:
|
70 | 84 | ${{ fromJson(needs.generate-x86_64-conda-matrix.outputs.matrix) }}
|
|
80 | 94 | python_version: ${{ matrix.python_version }}
|
81 | 95 | target_os: macos
|
82 | 96 | validate-macos-x86_64-binaries-wheel:
|
83 |
| - needs: generate-x86_64-wheel-matrix |
| 97 | + needs: generate-macos-x86_64-wheel-matrix |
84 | 98 | strategy:
|
85 | 99 | matrix:
|
86 | 100 | ${{ fromJson(needs.generate-x86_64-wheel-matrix.outputs.matrix) }}
|
|
0 commit comments