57
57
58
58
- name : Search cached third_party
59
59
env :
60
- cache_dir : ${{ github.workspace }}/../../../../.cache
60
+ cache_dir : ${{ github.workspace }}/../../../../../. cache
61
61
run : |
62
62
bash -x ${ci_scripts_runner}/download_tp_cache.sh ${cache_dir}/XPU/third_party XPU
63
63
83
83
CCACHE_LIMIT_MULTIPLE : 0.8
84
84
no_proxy : " bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
85
85
GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
86
- home_dir : ${{ github.workspace }}/../../../..
86
+ home_dir : ${{ github.workspace }}/../../../../..
87
87
run : |
88
88
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
89
89
echo "container_name=${container_name}" >> ${{ github.env }}
@@ -132,8 +132,6 @@ jobs:
132
132
git config --global --add safe.directory ${work_dir}
133
133
git submodule foreach "git config --global --add safe.directory \$toplevel/\$sm_path"
134
134
bash -x ${ci_scripts}/run_setup.sh bdist_wheel
135
- EXCODE=$?
136
- exit $EXCODE
137
135
'
138
136
139
137
- name : Upload product to bos
@@ -144,15 +142,15 @@ jobs:
144
142
bos_file : ${{ github.workspace }}/../bos/BosClient.py
145
143
paddle_whl : paddlepaddle_xpu-0.0.0-cp310-cp310-linux_x86_64.whl
146
144
run : |
145
+ if [ "${update_cached_package}" == ON ];then
146
+ cd ${{ github.workspace }}
147
+ tar --use-compress-program=pigz -cf ${xz_file} -C build third_party
148
+ fi
147
149
if [ ! -f "${{ env.bos_file }}" ]; then
148
150
wget -q --no-proxy -O ${{ env.home_path }}/bos_new.tar.gz https://xly-devops.bj.bcebos.com/home/bos_new.tar.gz --no-check-certificate
149
151
mkdir ${{ env.home_path }}/bos
150
152
tar xf ${{ env.home_path }}/bos_new.tar.gz -C ${{ env.home_path }}/bos
151
153
fi
152
- if [ "${update_cached_package}" == ON ];then
153
- cd ${{ github.workspace }}
154
- tar --use-compress-program=pigz -cf ${xz_file} -C build third_party
155
- fi
156
154
rm -rf `find . -name "*.a"`
157
155
rm -rf `find . -name "*.o"`
158
156
cd ${{ github.workspace }}/..
0 commit comments