Skip to content

Commit b5de016

Browse files
committed
Pass the INFERENCE CI when WITH_INFERENCE is OFF
1 parent 3420c94 commit b5de016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ function gen_capi_package() {
554554
function gen_fluid_inference_lib() {
555555
mkdir -p ${PADDLE_ROOT}/build
556556
cd ${PADDLE_ROOT}/build
557-
if [ ${WITH_C_API:-OFF} == "OFF" ] ; then
557+
if [[ ${WITH_C_API:-OFF} == "OFF" && ${WITH_INFERENCE:-ON} == "ON" ]] ; then
558558
cat <<EOF
559559
========================================
560560
Deploying fluid inference library ...
@@ -569,7 +569,7 @@ EOF
569569
}
570570

571571
function test_fluid_inference_lib() {
572-
if [ ${WITH_C_API:-OFF} == "OFF" ] ; then
572+
if [[ ${WITH_C_API:-OFF} == "OFF" && ${WITH_INFERENCE:-ON} == "ON" ]] ; then
573573
cat <<EOF
574574
========================================
575575
Testing fluid inference library ...

0 commit comments

Comments
 (0)