File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 95
95
run : |
96
96
set -euxo pipefail
97
97
# Set artifact name here since github actions doesn't have string manipulation tools
98
- # and "/" is not allowed in artifact names
99
- echo "ARTIFACT_NAME=${REPOSITORY/\//_}_${REF}_${PYTHON_VERSION}_${CU_VERSION}_${ARCH}" >> "${GITHUB_ENV}"
98
+ # and "/" is not allowed in artifact names. //\//_ is to replace all forward slashes,
99
+ # not just the first one
100
+ echo "ARTIFACT_NAME=${REPOSITORY//\//_}_${REF//\//_}_${PYTHON_VERSION}_${CU_VERSION}_${ARCH}" >> "${GITHUB_ENV}"
100
101
- name : Setup miniconda (for pytorch_pkg_helpers)
101
102
if : ${{ inputs.setup-miniconda == 'true' }}
102
103
uses :
conda-incubator/[email protected]
Original file line number Diff line number Diff line change 50
50
set -ex
51
51
52
52
# Set artifact name here since github actions doesn't have string manipulation tools
53
- # and "/" is not allowed in artifact names
54
- echo "ARTIFACT_NAME=${REPOSITORY/\//_}_${REF}_${PYTHON_VERSION}_${CU_VERSION}_${ARCH}" >> "${GITHUB_ENV}"
53
+ # and "/" is not allowed in artifact names. //\//_ is to replace all forward slashes,
54
+ # not just the first one
55
+ echo "ARTIFACT_NAME=${REPOSITORY//\//_}_${REF//\//_}_${PYTHON_VERSION}_${CU_VERSION}_${ARCH}" >> "${GITHUB_ENV}"
55
56
56
57
# Need to checkout the target repository to run pkg-helpers
57
58
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 44
44
build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
45
45
package-name : ${{ matrix.package-name }}
46
46
trigger-event : " ${{ github.event_name }}"
47
- build-platform : ' python-build-package'
47
+ build-platform : python-build-package
48
+ pip-install-torch-extra-args :
49
+ torchvision
50
+ torchao
Original file line number Diff line number Diff line change 28
28
fail-fast : false
29
29
matrix :
30
30
include :
31
- - repository : pytorch/audio
32
- env-script : packaging/vc_env_helper.bat
33
- wheel-build-params : " --plat-name win_amd64"
34
- smoke-test-script : test/smoke_test/smoke_test.py
35
- package-name : torchaudio
36
31
- repository : pytorch/vision
37
32
pre-script : packaging/pre_build_script.sh
38
33
env-script : packaging/windows/internal/vc_env_helper.bat
51
46
build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
52
47
pre-script : ${{ matrix.pre-script }}
53
48
env-script : ${{ matrix.env-script }}
54
- wheel-build-params : ${{ matrix.wheel-build-params }}
55
49
post-script : ${{ matrix.post-script }}
56
50
smoke-test-script : ${{ matrix.smoke-test-script }}
57
51
package-name : ${{ matrix.package-name }}
You can’t perform that action at this time.
0 commit comments