Skip to content

Commit 88adb30

Browse files
authored
Add option to validate only from download.pytorch.org (#1692)
1 parent aad5cec commit 88adb30

6 files changed

+74
-0
lines changed

.github/workflows/validate-aarch64-linux-binaries.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ on:
2727
default: ""
2828
required: false
2929
type: string
30+
use-only-dl-pytorch-org:
31+
description: 'Use only download.pytorch.org when generating wheel install command'
32+
default: false
33+
required: false
34+
type: boolean
3035
workflow_dispatch:
3136
inputs:
3237
channel:
@@ -58,6 +63,11 @@ on:
5863
default: ""
5964
required: false
6065
type: string
66+
use-only-dl-pytorch-org:
67+
description: 'Use only download.pytorch.org when generating wheel install command'
68+
default: false
69+
required: false
70+
type: boolean
6171

6272
jobs:
6373
generate-aarch64-linux-matrix:
@@ -67,6 +77,8 @@ jobs:
6777
os: linux-aarch64
6878
channel: ${{ inputs.channel }}
6979
with-cuda: disable
80+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
81+
7082
linux-aarch64:
7183
needs: generate-aarch64-linux-matrix
7284
strategy:

.github/workflows/validate-binaries.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ on:
3232
default: false
3333
required: false
3434
type: boolean
35+
use-only-dl-pytorch-org:
36+
description: 'Use only download.pytorch.org when generating wheel install command'
37+
default: false
38+
required: false
39+
type: boolean
3540
workflow_dispatch:
3641
inputs:
3742
os:
@@ -75,6 +80,11 @@ on:
7580
default: false
7681
required: false
7782
type: boolean
83+
use-only-dl-pytorch-org:
84+
description: 'Use only download.pytorch.org when generating wheel install command'
85+
default: false
86+
required: false
87+
type: boolean
7888

7989

8090
jobs:
@@ -93,6 +103,7 @@ jobs:
93103
torchonly: ${{ inputs.torchonly }}
94104
version: ${{ inputs.version }}
95105
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
106+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
96107

97108
linux:
98109
if: inputs.os == 'linux' || inputs.os == 'all'
@@ -105,6 +116,7 @@ jobs:
105116
version: ${{ inputs.version }}
106117
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
107118
include-test-ops: ${{ inputs.include-test-ops }}
119+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
108120

109121
linux-aarch64:
110122
if: inputs.os == 'linux-aarch64' || inputs.os == 'all'
@@ -116,6 +128,7 @@ jobs:
116128
torchonly: ${{ inputs.torchonly }}
117129
version: ${{ inputs.version }}
118130
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
131+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
119132

120133
mac:
121134
if: inputs.os == 'macos' || inputs.os == 'all'
@@ -127,6 +140,7 @@ jobs:
127140
torchonly: ${{ inputs.torchonly }}
128141
version: ${{ inputs.version }}
129142
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
143+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
130144

131145
mac-arm64:
132146
if: inputs.os == 'macos' || inputs.os == 'all'
@@ -138,3 +152,4 @@ jobs:
138152
torchonly: ${{ inputs.torchonly }}
139153
version: ${{ inputs.version }}
140154
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
155+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

.github/workflows/validate-linux-binaries.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ on:
3232
default: false
3333
required: false
3434
type: boolean
35+
use-only-dl-pytorch-org:
36+
description: 'Use only download.pytorch.org when generating wheel install command'
37+
default: false
38+
required: false
39+
type: boolean
3540
workflow_dispatch:
3641
inputs:
3742
channel:
@@ -68,6 +73,11 @@ on:
6873
default: false
6974
required: false
7075
type: boolean
76+
use-only-dl-pytorch-org:
77+
description: 'Use only download.pytorch.org when generating wheel install command'
78+
default: false
79+
required: false
80+
type: boolean
7181

7282
jobs:
7383
generate-linux-matrix:
@@ -76,6 +86,7 @@ jobs:
7686
package-type: all
7787
os: linux
7888
channel: ${{ inputs.channel }}
89+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
7990

8091
linux:
8192
needs: generate-linux-matrix

.github/workflows/validate-macos-arm64-binaries.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ on:
2727
default: ""
2828
required: false
2929
type: string
30+
use-only-dl-pytorch-org:
31+
description: 'Use only download.pytorch.org when generating wheel install command'
32+
default: false
33+
required: false
34+
type: boolean
3035
workflow_dispatch:
3136
inputs:
3237
channel:
@@ -58,6 +63,11 @@ on:
5863
default: ""
5964
required: false
6065
type: string
66+
use-only-dl-pytorch-org:
67+
description: 'Use only download.pytorch.org when generating wheel install command'
68+
default: false
69+
required: false
70+
type: boolean
6171

6272
jobs:
6373
generate-macos-arm64-matrix:
@@ -66,6 +76,8 @@ jobs:
6676
package-type: all
6777
os: macos-arm64
6878
channel: ${{ inputs.channel }}
79+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
80+
6981
macos-arm64:
7082
needs: generate-macos-arm64-matrix
7183
strategy:

.github/workflows/validate-macos-binaries.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ on:
2727
default: ""
2828
required: false
2929
type: string
30+
use-only-dl-pytorch-org:
31+
description: 'Use only download.pytorch.org when generating wheel install command'
32+
default: false
33+
required: false
34+
type: boolean
3035
workflow_dispatch:
3136
inputs:
3237
channel:
@@ -58,6 +63,11 @@ on:
5863
default: ""
5964
required: false
6065
type: string
66+
use-only-dl-pytorch-org:
67+
description: 'Use only download.pytorch.org when generating wheel install command'
68+
default: false
69+
required: false
70+
type: boolean
6171

6272
jobs:
6373
generate-macos-matrix:
@@ -66,6 +76,8 @@ jobs:
6676
package-type: all
6777
os: macos
6878
channel: ${{ inputs.channel }}
79+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
80+
6981
macos:
7082
needs: generate-macos-matrix
7183
strategy:

.github/workflows/validate-windows-binaries.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ on:
2727
default: ""
2828
required: false
2929
type: string
30+
use-only-dl-pytorch-org:
31+
description: 'Use only download.pytorch.org when generating wheel install command'
32+
default: false
33+
required: false
34+
type: boolean
3035
workflow_dispatch:
3136
inputs:
3237
channel:
@@ -58,6 +63,11 @@ on:
5863
default: ""
5964
required: false
6065
type: string
66+
use-only-dl-pytorch-org:
67+
description: 'Use only download.pytorch.org when generating wheel install command'
68+
default: false
69+
required: false
70+
type: boolean
6171

6272
jobs:
6373
generate-windows-matrix:
@@ -66,6 +76,8 @@ jobs:
6676
package-type: all
6777
os: windows
6878
channel: ${{ inputs.channel }}
79+
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
80+
6981
win:
7082
needs: generate-windows-matrix
7183
strategy:

0 commit comments

Comments
 (0)