Skip to content

Commit 75437ea

Browse files
committed
test=document_fix
1 parent cfd7c38 commit 75437ea

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.github/workflows/_Linux-XPU.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
5858
- name: Search cached third_party
5959
env:
60-
cache_dir: ${{ github.workspace }}/../../../../.cache
60+
cache_dir: ${{ github.workspace }}/../../../../../.cache
6161
run: |
6262
bash -x ${ci_scripts_runner}/download_tp_cache.sh ${cache_dir}/XPU/third_party XPU
6363
@@ -83,7 +83,7 @@ jobs:
8383
CCACHE_LIMIT_MULTIPLE: 0.8
8484
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
8585
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86-
home_dir: ${{ github.workspace }}/../../../..
86+
home_dir: ${{ github.workspace }}/../../../../..
8787
run: |
8888
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
8989
echo "container_name=${container_name}" >> ${{ github.env }}
@@ -132,8 +132,6 @@ jobs:
132132
git config --global --add safe.directory ${work_dir}
133133
git submodule foreach "git config --global --add safe.directory \$toplevel/\$sm_path"
134134
bash -x ${ci_scripts}/run_setup.sh bdist_wheel
135-
EXCODE=$?
136-
exit $EXCODE
137135
'
138136
139137
- name: Upload product to bos
@@ -144,15 +142,15 @@ jobs:
144142
bos_file: ${{ github.workspace }}/../bos/BosClient.py
145143
paddle_whl: paddlepaddle_xpu-0.0.0-cp310-cp310-linux_x86_64.whl
146144
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
147149
if [ ! -f "${{ env.bos_file }}" ]; then
148150
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
149151
mkdir ${{ env.home_path }}/bos
150152
tar xf ${{ env.home_path }}/bos_new.tar.gz -C ${{ env.home_path }}/bos
151153
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
156154
rm -rf `find . -name "*.a"`
157155
rm -rf `find . -name "*.o"`
158156
cd ${{ github.workspace }}/..

ci/download_tp_cache.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_md5=`find ${work_dir} -path './cmake/*' -type f |xargs md5sum|md5sum |awk '{print $1}'`
16-
third_party_md5=`find ${work_dir} -path './third_party/*' -type f |xargs md5sum|md5sum|awk '{print $1}'`
15+
cmake_md5=`find ${GITHUB_WORKSPACE} -path './cmake/*' -type f |xargs md5sum|md5sum |awk '{print $1}'`
16+
third_party_md5=`find ${GITHUB_WORKSPACE} -path './third_party/*' -type f |xargs md5sum|md5sum|awk '{print $1}'`
1717
export md5_content=`echo ${cmake_md5} ${third_party_md5} |md5sum|awk '{print $1}'`
1818
xz_dir="$1" && echo "xz_dir=${xz_dir}" >> $GITHUB_ENV
1919
xz_file_tar="${xz_dir}/${md5_content}.tar"
@@ -22,12 +22,12 @@ if [ ! -f "${xz_file}" ];then
2222
set +e
2323
wget -q --no-proxy --no-check-certificate https://paddle-github-action.bj.bcebos.com/home/.cache/$2/third_party/${md5_content}.tar.xz; result=$?
2424
if [ $result -eq 0 ];then
25-
mkdir -p ${work_dir}/build
25+
mkdir -p ${GITHUB_WORKSPACE}/build
2626
mv ${md5_content}.tar.xz ${xz_dir}
2727
else
2828
mkdir -p ${xz_dir}
2929
echo "update_cached_package=ON" >> $GITHUB_ENV
3030
fi
3131
else
32-
mkdir -p ${work_dir}/build
32+
mkdir -p ${GITHUB_WORKSPACE}/build
3333
fi

0 commit comments

Comments
 (0)