File tree Expand file tree Collapse file tree 2 files changed +30
-8
lines changed Expand file tree Collapse file tree 2 files changed +30
-8
lines changed Original file line number Diff line number Diff line change 23
23
description : " Build matrix to utilize"
24
24
default : " "
25
25
type : string
26
+ pytorch-version-override :
27
+ description : " Manual override of the pytorch version to install"
28
+ default : " "
29
+ type : string
26
30
pre-script :
27
31
description : " Pre script to run prior to build"
28
32
default : " "
@@ -136,11 +140,18 @@ jobs:
136
140
set -e
137
141
- uses : pytorch/test-infra/.github/actions/set-channel@release/2.3
138
142
- name : Set PYTORCH_VERSION
139
- if : ${{ env.CHANNEL == 'test' }}
143
+ if : ${{ inputs.pytorch-version-override != '' || env.CHANNEL == 'test' }}
140
144
run : |
141
- # When building RC, set the version to be the current candidate version,
142
- # otherwise, leave it alone so nightly will pick up the latest
143
- echo "PYTORCH_VERSION=${{ matrix.stable_version }}" >> "${GITHUB_ENV}"
145
+ if [[ ! -z "${{ inputs.pytorch-version-override }}" ]]; then
146
+ # If there is an override, use it instead of the version associated
147
+ # with the channel.
148
+ echo "PYTORCH_VERSION=${{ inputs.pytorch-version-override }}" >> "${GITHUB_ENV}"
149
+ else
150
+ # When building RC (test channel), set the version to be the current
151
+ # candidate version, otherwise, leave it alone so nightly will pick
152
+ # up the latest
153
+ echo "PYTORCH_VERSION=${{ matrix.stable_version }}" >> "${GITHUB_ENV}"
154
+ fi
144
155
- uses : pytorch/test-infra/.github/actions/setup-binary-builds@release/2.3
145
156
env :
146
157
PLATFORM : ${{ inputs.architecture == 'aarch64' && 'linux-aarch64' || ''}}
Original file line number Diff line number Diff line change 23
23
description : " Build matrix to utilize"
24
24
default : " "
25
25
type : string
26
+ pytorch-version-override :
27
+ description : " Manual override of the pytorch version to install"
28
+ default : " "
29
+ type : string
26
30
pre-script :
27
31
description : " Pre script to run prior to build"
28
32
default : " "
@@ -101,11 +105,18 @@ jobs:
101
105
path : test-infra
102
106
- uses : pytorch/test-infra/.github/actions/set-channel@release/2.3
103
107
- name : Set PYTORCH_VERSION
104
- if : ${{ env.CHANNEL == 'test' }}
108
+ if : ${{ inputs.pytorch-version-override != '' || env.CHANNEL == 'test' }}
105
109
run : |
106
- # When building RC, set the version to be the current candidate version,
107
- # otherwise, leave it alone so nightly will pick up the latest
108
- echo "PYTORCH_VERSION=${{ matrix.stable_version }}" >> "${GITHUB_ENV}"
110
+ if [[ ! -z "${{ inputs.pytorch-version-override }}" ]]; then
111
+ # If there is an override, use it instead of the version associated
112
+ # with the channel.
113
+ echo "PYTORCH_VERSION=${{ inputs.pytorch-version-override }}" >> "${GITHUB_ENV}"
114
+ else
115
+ # When building RC (test channel), set the version to be the current
116
+ # candidate version, otherwise, leave it alone so nightly will pick
117
+ # up the latest
118
+ echo "PYTORCH_VERSION=${{ matrix.stable_version }}" >> "${GITHUB_ENV}"
119
+ fi
109
120
- uses : pytorch/test-infra/.github/actions/setup-binary-builds@release/2.3
110
121
with :
111
122
repository : ${{ inputs.repository }}
You can’t perform that action at this time.
0 commit comments