Skip to content

Commit 174d884

Browse files
authored
Merge pull request #10904 from luotao1/ci
refine fluid deploy on teamcity
2 parents e0d5702 + 654229b commit 174d884

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmake/inference_lib.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ add_custom_target(inference_lib_dist DEPENDS ${inference_lib_dist_dep})
172172
# paddle fluid version
173173
execute_process(
174174
COMMAND ${GIT_EXECUTABLE} log --pretty=format:%H -1
175+
WORKING_DIRECTORY ${PADDLE_SOURCE_DIR}
175176
OUTPUT_VARIABLE PADDLE_GIT_COMMIT)
176177
set(version_file ${FLUID_INSTALL_DIR}/version.txt)
177178
file(WRITE ${version_file}

paddle/scripts/paddle_build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,9 @@ function gen_fluid_inference_lib() {
496496
========================================
497497
EOF
498498
make -j `nproc` inference_lib_dist
499-
tar -cf ${PADDLE_ROOT}/build/fluid.tgz ${PADDLE_ROOT}/build/fluid_install_dir
499+
cd ${PADDLE_ROOT}/build
500+
mv fluid_install_dir fluid
501+
tar -cf fluid.tgz fluid
500502
fi
501503
}
502504

0 commit comments

Comments
 (0)