Skip to content

Commit ec72ec8

Browse files
authored
Add with_cuda flag (#1249)
1 parent cc3ea1b commit ec72ec8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/validate-domain-library.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ on:
3434
description: "Path to a smoke test script"
3535
required: true
3636
type: string
37+
with_cuda:
38+
description: "With cuda enable/disable"
39+
required: false
40+
type: string
41+
default: disable
3742

3843
jobs:
3944
generate-linux-matrix:
@@ -43,31 +48,31 @@ jobs:
4348
package-type: ${{ inputs.package_type }}
4449
os: linux
4550
channel: ${{ inputs.channel }}
46-
with-cuda: disable
51+
with-cuda: ${{ inputs.with_cuda }}
4752
generate-windows-matrix:
4853
if: (inputs.os == 'windows' || inputs.os == 'all')
4954
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
5055
with:
5156
package-type: ${{ inputs.package_type }}
5257
os: windows
5358
channel: ${{ inputs.channel }}
54-
with-cuda: disable
59+
with-cuda: ${{ inputs.with_cuda }}
5560
generate-macos-matrix:
5661
if: (inputs.os == 'macos' || inputs.os == 'all')
5762
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
5863
with:
5964
package-type: ${{ inputs.package_type }}
6065
os: macos
6166
channel: ${{ inputs.channel }}
62-
with-cuda: disable
67+
with-cuda: ${{ inputs.with_cuda }}
6368
generate-macos-arm64-matrix:
6469
if: (inputs.os == 'macos-arm64' || inputs.os == 'all')
6570
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
6671
with:
6772
package-type: ${{ inputs.package_type }}
6873
os: macos-arm64
6974
channel: ${{ inputs.channel }}
70-
with-cuda: disable
75+
with-cuda: ${{ inputs.with_cuda }}
7176
validate-linux:
7277
if: (inputs.os == 'linux' || inputs.os == 'all')
7378
needs: generate-linux-matrix

0 commit comments

Comments
 (0)