@@ -191,20 +191,31 @@ jobs:
191191
192192 commit_id=${{ github.sha }}
193193 branch_name=${{ github.ref_name }}
194- target_path=paddle-qa/paddle-pipeline/FastDeploy_ActionCE/SM${COMPILE_ARCH//,/_}/${branch_name}/${commit_id}
195194
196- wget -q --no-proxy --no-check-certificate https://paddle-qa.bj.bcebos.com/CodeSync/develop/PaddlePaddle/PaddleTest/tools/bos_tools.py
195+ wget -q --no-proxy --no-check-certificate https://paddle-qa.bj.bcebos.com/CodeSync/develop/PaddlePaddle/PaddleTest/tools/bos_tools.py
197196 push_file=$(realpath bos_tools.py)
198197 python -m pip install bce-python-sdk==0.9.29
199- ls
200- python ${push_file} ${filename} ${target_path}
201- target_path_stripped="${target_path#paddle-qa/}"
202- WHEEL_PATH=https://paddle-qa.bj.bcebos.com/${target_path_stripped}/${filename}
203198
204- target_path_latest=paddle-qa/paddle-pipeline/FastDeploy_ActionCE/SM${COMPILE_ARCH//,/_}/${branch_name}/latest
205- python ${push_file} ${filename} ${target_path_latest}
206- target_path_stripped_latest="${target_path_latest#paddle-qa/}"
207- WHEEL_PATH_LATEST=https://paddle-qa.bj.bcebos.com/${target_path_stripped_latest}/${filename}
199+ target_paths=(
200+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/SM${COMPILE_ARCH//,/_}/${branch_name}/${commit_id}"
201+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/cu126/SM_80/${branch_name}/${commit_id}"
202+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/cu126/SM_90/${branch_name}/${commit_id}"
203+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/SM${COMPILE_ARCH//,/_}/${branch_name}/latest"
204+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/cu126/SM_80/${branch_name}/latest"
205+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/cu126/SM_90/${branch_name}/latest"
206+ )
207+
208+ for target_path in "${target_paths[@]}"; do
209+ echo "Uploading ${filename} to ${target_path}"
210+ python "${push_file}" "${filename}" "${target_path}"
211+ done
212+
213+ base_prefix="paddle-qa/"
214+ commit_path_stripped="${target_paths[0]#${base_prefix}}"
215+ latest_path_stripped="${target_paths[3]#${base_prefix}}"
216+ WHEEL_PATH="https://paddle-qa.bj.bcebos.com/${commit_path_stripped}/${filename}"
217+ WHEEL_PATH_LATEST="https://paddle-qa.bj.bcebos.com/${latest_path_stripped}/${filename}"
218+
208219 echo "commit wheel url is ${WHEEL_PATH}"
209220 echo "latest wheel url is ${WHEEL_PATH_LATEST}"
210221
@@ -230,19 +241,30 @@ jobs:
230241
231242 commit_id=${{ github.sha }}
232243 branch_name=${{ github.ref_name }}
233- target_path=paddle-qa/paddle-pipeline/FastDeploy_ActionCE/SM${COMPILE_ARCH//,/_}/${branch_name}/${commit_id}
234244
235- wget -q --no-proxy --no-check-certificate https://paddle-qa.bj.bcebos.com/CodeSync/develop/PaddlePaddle/PaddleTest/tools/bos_tools.py
245+ wget -q --no-proxy --no-check-certificate https://paddle-qa.bj.bcebos.com/CodeSync/develop/PaddlePaddle/PaddleTest/tools/bos_tools.py
236246 push_file=$(realpath bos_tools.py)
237247 python -m pip install bce-python-sdk==0.9.29
238- ls
239- python ${push_file} ${filename} ${target_path}
240- target_path_stripped="${target_path#paddle-qa/}"
241- WHEEL_PATH=https://paddle-qa.bj.bcebos.com/${target_path_stripped}/${filename}
242248
243- target_path_latest=paddle-qa/paddle-pipeline/FastDeploy_ActionCE/SM${COMPILE_ARCH//,/_}/${branch_name}/latest
244- python ${push_file} ${filename} ${target_path_latest}
245- target_path_stripped_latest="${target_path_latest#paddle-qa/}"
246- WHEEL_PATH_LATEST=https://paddle-qa.bj.bcebos.com/${target_path_stripped_latest}/${filename}
249+ target_paths=(
250+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/SM${COMPILE_ARCH//,/_}/${branch_name}/${commit_id}"
251+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/cu126/SM_86/${branch_name}/${commit_id}"
252+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/cu126/SM_89/${branch_name}/${commit_id}"
253+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/SM${COMPILE_ARCH//,/_}/${branch_name}/latest"
254+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/cu126/SM_86/${branch_name}/latest"
255+ "paddle-qa/paddle-pipeline/FastDeploy_ActionCE/cu126/SM_89/${branch_name}/latest"
256+ )
257+
258+ for target_path in "${target_paths[@]}"; do
259+ echo "Uploading ${filename} to ${target_path}"
260+ python "${push_file}" "${filename}" "${target_path}"
261+ done
262+
263+ base_prefix="paddle-qa/"
264+ commit_path_stripped="${target_paths[0]#${base_prefix}}"
265+ latest_path_stripped="${target_paths[3]#${base_prefix}}"
266+ WHEEL_PATH="https://paddle-qa.bj.bcebos.com/${commit_path_stripped}/${filename}"
267+ WHEEL_PATH_LATEST="https://paddle-qa.bj.bcebos.com/${latest_path_stripped}/${filename}"
268+
247269 echo "commit wheel url is ${WHEEL_PATH}"
248270 echo "latest wheel url is ${WHEEL_PATH_LATEST}"
0 commit comments