Skip to content

Commit

Permalink
Add option to validate only from download.pytorch.org (#1692)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Jan 30, 2024
1 parent aad5cec commit 88adb30
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/validate-aarch64-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ on:
default: ""
required: false
type: string
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean
workflow_dispatch:
inputs:
channel:
Expand Down Expand Up @@ -58,6 +63,11 @@ on:
default: ""
required: false
type: string
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean

jobs:
generate-aarch64-linux-matrix:
Expand All @@ -67,6 +77,8 @@ jobs:
os: linux-aarch64
channel: ${{ inputs.channel }}
with-cuda: disable
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

linux-aarch64:
needs: generate-aarch64-linux-matrix
strategy:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/validate-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ on:
default: false
required: false
type: boolean
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean
workflow_dispatch:
inputs:
os:
Expand Down Expand Up @@ -75,6 +80,11 @@ on:
default: false
required: false
type: boolean
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean


jobs:
Expand All @@ -93,6 +103,7 @@ jobs:
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

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

linux-aarch64:
if: inputs.os == 'linux-aarch64' || inputs.os == 'all'
Expand All @@ -116,6 +128,7 @@ jobs:
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

mac:
if: inputs.os == 'macos' || inputs.os == 'all'
Expand All @@ -127,6 +140,7 @@ jobs:
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

mac-arm64:
if: inputs.os == 'macos' || inputs.os == 'all'
Expand All @@ -138,3 +152,4 @@ jobs:
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
11 changes: 11 additions & 0 deletions .github/workflows/validate-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ on:
default: false
required: false
type: boolean
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean
workflow_dispatch:
inputs:
channel:
Expand Down Expand Up @@ -68,6 +73,11 @@ on:
default: false
required: false
type: boolean
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean

jobs:
generate-linux-matrix:
Expand All @@ -76,6 +86,7 @@ jobs:
package-type: all
os: linux
channel: ${{ inputs.channel }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

linux:
needs: generate-linux-matrix
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/validate-macos-arm64-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ on:
default: ""
required: false
type: string
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean
workflow_dispatch:
inputs:
channel:
Expand Down Expand Up @@ -58,6 +63,11 @@ on:
default: ""
required: false
type: string
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean

jobs:
generate-macos-arm64-matrix:
Expand All @@ -66,6 +76,8 @@ jobs:
package-type: all
os: macos-arm64
channel: ${{ inputs.channel }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

macos-arm64:
needs: generate-macos-arm64-matrix
strategy:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/validate-macos-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ on:
default: ""
required: false
type: string
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean
workflow_dispatch:
inputs:
channel:
Expand Down Expand Up @@ -58,6 +63,11 @@ on:
default: ""
required: false
type: string
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean

jobs:
generate-macos-matrix:
Expand All @@ -66,6 +76,8 @@ jobs:
package-type: all
os: macos
channel: ${{ inputs.channel }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

macos:
needs: generate-macos-matrix
strategy:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/validate-windows-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ on:
default: ""
required: false
type: string
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean
workflow_dispatch:
inputs:
channel:
Expand Down Expand Up @@ -58,6 +63,11 @@ on:
default: ""
required: false
type: string
use-only-dl-pytorch-org:
description: 'Use only download.pytorch.org when generating wheel install command'
default: false
required: false
type: boolean

jobs:
generate-windows-matrix:
Expand All @@ -66,6 +76,8 @@ jobs:
package-type: all
os: windows
channel: ${{ inputs.channel }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

win:
needs: generate-windows-matrix
strategy:
Expand Down

0 comments on commit 88adb30

Please sign in to comment.