1818 outputs :
1919 torch-npu-artifact :
2020 description : ' The distribution artifact name of torch_npu'
21- value : ${{ jobs.build.outputs.dist_name }}
21+ value : ${{ jobs.build.outputs.dist-name }}
2222
2323# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
2424# declared as "shell: bash -el {0}" on steps that need to be properly activated.
4141 ALL_PROXY : socks5://127.0.0.1:10808
4242 SOCKS_PROXY : socks5://127.0.0.1:10808
4343 outputs :
44- dist_name : ${{ steps.list-dist.outputs.dist_name }}
44+ dist-name : ${{ steps.list-dist.outputs.dist-name }}
4545 steps :
4646 - name : Config mirrors
4747 run : |
9494 id : install-torch
9595 shell : bash
9696 run : |
97- torch_version =$(python -c "import torch; print(torch.__version__)")
98- echo "torch_version =${torch_version }" >> $GITHUB_OUTPUT
97+ torch-version =$(python -c "import torch; print(torch.__version__)")
98+ echo "torch-version =${torch-version }" >> $GITHUB_OUTPUT
9999
100100 - name : Generate pip's constraint file
101101 working-directory : torch_npu
@@ -114,30 +114,30 @@ jobs:
114114 id : list-py-version
115115 working-directory : torch_npu
116116 run : |
117- py_version =$(python --version | awk '{print $2}' | cut -d '.' -f 1,2)
118- echo "py_version =${py_version }" >> $GITHUB_OUTPUT
117+ py-version =$(python --version | awk '{print $2}' | cut -d '.' -f 1,2)
118+ echo "py-version =${py-version }" >> $GITHUB_OUTPUT
119119
120120 - name : Build torch_npu
121121 working-directory : torch_npu
122122 run : |
123- bash ci/build.sh --python=${{ steps.list-py-version.outputs.py_version }}
123+ bash ci/build.sh --python=${{ steps.list-py-version.outputs.py-version }}
124124
125125 - name : List distribution package
126126 id : list-dist
127127 working-directory : torch_npu/dist
128128 run : |
129- dist_name =$(ls torch_npu*.whl)
130- dist_path =$(pwd)/${dist_name }
131- echo "dist_name =${dist_name }" >> $GITHUB_OUTPUT
132- echo "dist_path =${dist_path }" >> $GITHUB_OUTPUT
129+ dist-name =$(ls torch_npu*.whl)
130+ dist-path =$(pwd)/${dist-name }
131+ echo "dist-name =${dist-name }" >> $GITHUB_OUTPUT
132+ echo "dist-path =${dist-path }" >> $GITHUB_OUTPUT
133133
134134 - name : Upload distribution artifact
135135 id : upload-dist
136136 continue-on-error : true
137137 uses : actions/upload-artifact@v4
138138 with :
139- name : ${{ steps.list-dist.outputs.dist_name }}
140- path : ${{ steps.list-dist.outputs.dist_path }}
139+ name : ${{ steps.list-dist.outputs.dist-name }}
140+ path : ${{ steps.list-dist.outputs.dist-path }}
141141 if-no-files-found : error
142142 retention-days : 1
143143 overwrite : true
0 commit comments