Skip to content

Commit b7c47c5

Browse files
authored
Adding limit windows builds logic (#1297)
* Adding limit windows builds logic * Remove empty space
1 parent 7d45255 commit b7c47c5

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ else
2525
INSTALLATION_PYPI=${INSTALLATION_PYPI/"index-url"/"extra-index-url"}
2626
conda run -p ${ENV_NAME}_pypi ${INSTALLATION_PYPI}
2727
conda run -p ${ENV_NAME}_pypi python ./test/smoke_test/smoke_test.py --package torchonly
28-
conda activate base
28+
conda deactivate
2929
conda env remove -p ${ENV_NAME}_pypi
3030
fi
3131

@@ -41,5 +41,7 @@ else
4141
fi
4242

4343
python ./test/smoke_test/smoke_test.py
44+
conda deactivate
45+
conda env remove -n ${ENV_NAME}
4446
fi
4547
fi

.github/workflows/validate-binaries.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
default: ""
2323
required: false
2424
type: string
25+
limit-win-builds:
26+
description: "Limit windows builds to single python/cuda config"
27+
default: "disable"
28+
type: string
2529
workflow_dispatch:
2630
inputs:
2731
os:
@@ -49,6 +53,11 @@ on:
4953
default: ""
5054
required: false
5155
type: string
56+
limit-win-builds:
57+
description: "Limit windows builds to single python/cuda config"
58+
default: "disable"
59+
required: false
60+
type: string
5261

5362
jobs:
5463
win:
@@ -57,6 +66,7 @@ jobs:
5766
with:
5867
channel: ${{ inputs.channel }}
5968
ref: ${{ inputs.ref || github.ref }}
69+
limit-win-builds: ${{ inputs.limit-win-builds }}
6070

6171
linux:
6272
if: inputs.os == 'linux' || inputs.os == 'all'

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
channel: nightly
3434
os: all
35+
limit-win-builds: enable

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
channel: release
3434
os: all
35+
limit-win-builds: enable

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
default: ""
1313
required: false
1414
type: string
15+
limit-win-builds:
16+
description: "Limit windows builds to single python/cuda config"
17+
default: "disable"
18+
type: string
1519
workflow_dispatch:
1620
inputs:
1721
channel:
@@ -28,6 +32,11 @@ on:
2832
default: ""
2933
required: false
3034
type: string
35+
limit-win-builds:
36+
description: "Limit windows builds to single python/cuda config"
37+
default: "disable"
38+
required: false
39+
type: string
3140

3241
jobs:
3342
generate-windows-matrix:
@@ -36,6 +45,7 @@ jobs:
3645
package-type: all
3746
os: windows
3847
channel: ${{ inputs.channel }}
48+
limit-win-builds: ${{ inputs.limit-win-builds }}
3949

4050
win:
4151
needs: generate-windows-matrix

0 commit comments

Comments
 (0)