File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,20 @@ jobs:
21
21
whl :
22
22
- url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp310-cp310-linux_x86_64.whl
23
23
python : " 3.10"
24
- # - url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp311-cp311-linux_x86_64.whl
25
- # python: "3.11"
26
24
- url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp37-cp37m-linux_x86_64.whl
27
25
python : " 3.7"
28
26
- url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp38-cp38-linux_x86_64.whl
29
27
python : " 3.8"
30
28
- url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp39-cp39-linux_x86_64.whl
31
29
python : " 3.9"
30
+ # - url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp311-cp311-linux_x86_64.whl
31
+ # python: "3.11"
32
32
33
33
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
34
34
with :
35
35
runner : linux.4xlarge.nvidia.gpu
36
- repository : " pytorch/builder"
37
- ref : ${{ github.ref }}
38
36
job-name : " Validate binary size"
37
+ upload-artifact : pipy_wheel
39
38
script : |
40
39
set -ex
41
40
export ENV_NAME="conda-env-${{ github.run_id }}"
66
65
NEW_FILENAME=$(ls -1 *.whl | head -n 1)
67
66
echo "::notice:: $FILENAME before: $SIZE_BEFORE after: $(du -h $NEW_FILENAME | cut -f1)"
68
67
68
+ # cp to ${RUNNER_ARTIFACT_DIR}
69
+ cp $NEW_FILENAME ${RUNNER_ARTIFACT_DIR}/
70
+
69
71
# create conda env
70
72
conda create -y -n $ENV_NAME python=$DESIRED_PYTHON
71
73
conda activate $ENV_NAME
Original file line number Diff line number Diff line change @@ -77,7 +77,15 @@ for whl_file in "$@"; do
77
77
find " ${dist_info_folder} " -type f -exec sed -i " s!${version_with_suffix} !${version_no_suffix} !" {} \;
78
78
# Moves distinfo from one with a version suffix to one without
79
79
# Example: torch-1.8.0+cpu.dist-info => torch-1.8.0.dist-info
80
+
81
+ echo " Before moving dist_info_folder"
82
+ ls -l " ${whl_dir} "
83
+
80
84
mv " ${dist_info_folder} " " ${dirname_dist_info_folder} /${basename_dist_info_folder/ ${version_with_suffix} / ${version_no_suffix} } "
85
+
86
+ echo " After moving dist_info_folder"
87
+ ls -l " ${whl_dir} "
88
+
81
89
cd " ${whl_dir} "
82
90
83
91
(
@@ -95,6 +103,7 @@ for whl_file in "$@"; do
95
103
fi
96
104
)
97
105
106
+ rm -rf " ${new_whl_file} "
98
107
zip -qr9 " ${new_whl_file} " .
99
108
)
100
109
done
You can’t perform that action at this time.
0 commit comments