|
61 | 61 | required: false |
62 | 62 | type: boolean |
63 | 63 | version: |
64 | | - description: 'Version to validate - optional' |
| 64 | + description: 'Version to validate' |
65 | 65 | default: "" |
66 | 66 | required: false |
67 | 67 | type: string |
68 | 68 |
|
69 | 69 |
|
70 | 70 | jobs: |
| 71 | + generate-release-matrix: |
| 72 | + uses: pytorch/test-infra/.github/workflows/generate_release_matrix.yml@main |
| 73 | + with: |
| 74 | + version: ${{ inputs.version }} |
| 75 | + |
71 | 76 | win: |
72 | 77 | if: inputs.os == 'windows' || inputs.os == 'all' |
| 78 | + needs: generate-release-matrix |
73 | 79 | uses: ./.github/workflows/validate-windows-binaries.yml |
74 | 80 | with: |
75 | 81 | channel: ${{ inputs.channel }} |
76 | 82 | ref: ${{ inputs.ref || github.ref }} |
77 | 83 | torchonly: ${{ inputs.torchonly }} |
78 | 84 | version: ${{ inputs.version }} |
| 85 | + release-matrix: ${{ fromJson(needs.generate-linux-matrix.outputs.matrix) }} |
79 | 86 |
|
80 | 87 | linux: |
81 | 88 | if: inputs.os == 'linux' || inputs.os == 'all' |
| 89 | + needs: generate-release-matrix |
82 | 90 | uses: ./.github/workflows/validate-linux-binaries.yml |
83 | 91 | with: |
84 | 92 | channel: ${{ inputs.channel }} |
85 | 93 | ref: ${{ inputs.ref || github.ref }} |
86 | 94 | torchonly: ${{ inputs.torchonly }} |
87 | 95 | version: ${{ inputs.version }} |
| 96 | + release-matrix: ${{ fromJson(needs.generate-linux-matrix.outputs.matrix) }} |
88 | 97 |
|
89 | 98 | linux-aarch64: |
90 | 99 | if: inputs.os == 'linux-aarch64' |
| 100 | + needs: generate-release-matrix |
91 | 101 | uses: ./.github/workflows/validate-aarch64-linux-binaries.yml |
92 | 102 | with: |
93 | 103 | channel: ${{ inputs.channel }} |
94 | 104 | ref: ${{ inputs.ref || github.ref }} |
95 | 105 | torchonly: ${{ inputs.torchonly }} |
96 | 106 | version: ${{ inputs.version }} |
| 107 | + release-matrix: ${{ fromJson(needs.generate-linux-matrix.outputs.matrix) }} |
97 | 108 |
|
98 | 109 | mac: |
99 | 110 | if: inputs.os == 'macos' || inputs.os == 'all' |
| 111 | + needs: generate-release-matrix |
100 | 112 | uses: ./.github/workflows/validate-macos-binaries.yml |
101 | 113 | with: |
102 | 114 | channel: ${{ inputs.channel }} |
103 | 115 | ref: ${{ inputs.ref || github.ref }} |
104 | 116 | torchonly: ${{ inputs.torchonly }} |
105 | 117 | version: ${{ inputs.version }} |
| 118 | + release-matrix: ${{ fromJson(needs.generate-linux-matrix.outputs.matrix) }} |
106 | 119 |
|
107 | 120 | mac-arm64: |
108 | 121 | if: inputs.os == 'macos' || inputs.os == 'all' |
| 122 | + needs: generate-release-matrix |
109 | 123 | uses: ./.github/workflows/validate-macos-arm64-binaries.yml |
110 | 124 | with: |
111 | 125 | channel: ${{ inputs.channel }} |
112 | 126 | ref: ${{ inputs.ref || github.ref }} |
113 | 127 | torchonly: ${{ inputs.torchonly }} |
114 | 128 | version: ${{ inputs.version }} |
| 129 | + release-matrix: ${{ fromJson(needs.generate-linux-matrix.outputs.matrix) }} |
0 commit comments