diff --git a/.github/workflows/python-app-php53.yml b/.github/workflows/python-app-php53.yml index 325f6b890..7b27c6ee3 100644 --- a/.github/workflows/python-app-php53.yml +++ b/.github/workflows/python-app-php53.yml @@ -31,8 +31,12 @@ jobs: sudo bash scripts/install_dev.sh - name: Install PHP53 run: | - SYS_MAKEJN="-j4" + SYS_MAKEJN="-j8" cd /www/server/mdserver-web/plugins/php && sudo bash install.sh install 53 + - name: Install PHP54 + run: | + SYS_MAKEJN="-j8" + cd /www/server/mdserver-web/plugins/php && sudo bash install.sh install 54 - name: Start DEBUG run: | gunicorn -c setting.py app:app diff --git a/plugins/php/versions/54/install.sh b/plugins/php/versions/54/install.sh index 4cf83ba6f..12a961cba 100755 --- a/plugins/php/versions/54/install.sh +++ b/plugins/php/versions/54/install.sh @@ -45,6 +45,10 @@ else OPTIONS="${OPTIONS} --with-curl" fi +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" + if [ ! -d $serverPath/php/${PHP_VER} ];then cd $sourcePath/php/php${PHP_VER} && ./configure \ --prefix=$serverPath/php/${PHP_VER} \ @@ -69,7 +73,7 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then $OPTIONS \ --enable-fpm - make clean && make + make clean && make $MAKEJN #debian11,没有生成php54 man if [ ! -f sapi/cli/php.1 ];then diff --git a/plugins/php/versions/55/install.sh b/plugins/php/versions/55/install.sh index 2acccd628..e8d922a2c 100755 --- a/plugins/php/versions/55/install.sh +++ b/plugins/php/versions/55/install.sh @@ -44,6 +44,11 @@ else OPTIONS="${OPTIONS} --with-curl" fi +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" + + if [ ! -d $serverPath/php/55 ];then cd $sourcePath/php/php${PHP_VER} && ./configure \ --prefix=$serverPath/php/55 \ @@ -68,7 +73,7 @@ if [ ! -d $serverPath/php/55 ];then --disable-fileinfo \ $OPTIONS \ --enable-fpm - make clean && make && make install && make clean + make clean && make $MAKEJN && make install && make clean fi #------------------------ install end ------------------------------------# diff --git a/plugins/php/versions/56/install.sh b/plugins/php/versions/56/install.sh index f2c0aebca..61a7bc169 100755 --- a/plugins/php/versions/56/install.sh +++ b/plugins/php/versions/56/install.sh @@ -44,6 +44,10 @@ else OPTIONS="${OPTIONS} --with-curl" fi +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" + if [ ! -d $serverPath/php/56 ];then cd $sourcePath/php/php${PHP_VER} && ./configure \ --prefix=$serverPath/php/56 \ @@ -70,7 +74,7 @@ if [ ! -d $serverPath/php/56 ];then --disable-fileinfo \ $OPTIONS \ --enable-fpm - make clean && make && make install && make clean + make clean && make $MAKEJN && make install && make clean fi #------------------------ install end ------------------------------------# diff --git a/plugins/php/versions/70/install.sh b/plugins/php/versions/70/install.sh index 6877a0633..aa2e32f64 100755 --- a/plugins/php/versions/70/install.sh +++ b/plugins/php/versions/70/install.sh @@ -44,6 +44,11 @@ else OPTIONS="${OPTIONS} --with-curl" fi + +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" + if [ ! -d $serverPath/php/70 ];then cd $sourcePath/php/php${PHP_VER} && ./configure \ --prefix=$serverPath/php/70 \ @@ -67,7 +72,7 @@ if [ ! -d $serverPath/php/70 ];then --disable-fileinfo \ $OPTIONS \ --enable-fpm - make clean && make && make install && make clean + make clean && make $MAKEJN && make install && make clean fi #------------------------ install end ------------------------------------# diff --git a/plugins/php/versions/71/install.sh b/plugins/php/versions/71/install.sh index e3242af8b..6c1cf3dfd 100755 --- a/plugins/php/versions/71/install.sh +++ b/plugins/php/versions/71/install.sh @@ -43,6 +43,10 @@ else OPTIONS="${OPTIONS} --with-curl" fi +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" + if [ ! -d $serverPath/php/71 ];then cd $sourcePath/php/php${PHP_VER} && ./configure \ --prefix=$serverPath/php/71 \ @@ -66,7 +70,7 @@ if [ ! -d $serverPath/php/71 ];then --disable-fileinfo \ $OPTIONS \ --enable-fpm - make clean && make && make install && make clean + make clean && make $MAKEJN && make install && make clean fi #------------------------ install end ------------------------------------# diff --git a/plugins/php/versions/72/install.sh b/plugins/php/versions/72/install.sh index 4d8402c2b..f875e65af 100755 --- a/plugins/php/versions/72/install.sh +++ b/plugins/php/versions/72/install.sh @@ -44,6 +44,10 @@ else OPTIONS="${OPTIONS} --with-curl" fi +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" + if [ ! -d $serverPath/php/72 ];then cd $sourcePath/php/php${PHP_VER} && ./configure \ --prefix=$serverPath/php/72 \ @@ -67,7 +71,7 @@ if [ ! -d $serverPath/php/72 ];then --disable-fileinfo \ $OPTIONS \ --enable-fpm - make clean && make && make install && make clean + make clean && make $MAKEJN && make install && make clean fi #------------------------ install end ------------------------------------# diff --git a/plugins/php/versions/73/install.sh b/plugins/php/versions/73/install.sh index 4f8858091..683ef59cf 100755 --- a/plugins/php/versions/73/install.sh +++ b/plugins/php/versions/73/install.sh @@ -49,6 +49,9 @@ else OPTIONS="${OPTIONS} --with-libzip=${serverPath}/lib/libzip" fi +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" if [ ! -d $serverPath/php/73 ];then cd $sourcePath/php/php${PHP_VER} && ./configure \ @@ -72,7 +75,7 @@ if [ ! -d $serverPath/php/73 ];then --disable-fileinfo \ $OPTIONS \ --enable-fpm - make clean && make && make install && make clean + make clean && make $MAKEJN && make install && make clean fi #------------------------ install end ------------------------------------# diff --git a/plugins/php/versions/74/install.sh b/plugins/php/versions/74/install.sh index 2cb574ede..dc948b6cf 100755 --- a/plugins/php/versions/74/install.sh +++ b/plugins/php/versions/74/install.sh @@ -53,6 +53,10 @@ else fi +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" + echo "$sourcePath/php/php${PHP_VER}" if [ ! -d $serverPath/php/${PHP_VER} ];then @@ -79,7 +83,7 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then --disable-fileinfo \ $OPTIONS \ --enable-fpm - make && make install + make $MAKEJN && make install && make clean fi #------------------------ install end ------------------------------------# } diff --git a/plugins/php/versions/80/install.sh b/plugins/php/versions/80/install.sh index 8e75a734e..7d6ba1ec3 100755 --- a/plugins/php/versions/80/install.sh +++ b/plugins/php/versions/80/install.sh @@ -52,6 +52,9 @@ else OPTIONS="${OPTIONS} --with-curl" fi +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" echo "$sourcePath/php/php${PHP_VER}" @@ -79,7 +82,7 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then --disable-fileinfo \ $OPTIONS \ --enable-fpm - make clean && make && make install && make clean + make clean && make $MAKEJN && make install && make clean fi #------------------------ install end ------------------------------------# } diff --git a/plugins/php/versions/81/install.sh b/plugins/php/versions/81/install.sh index 1f7fc0c06..4f390d87e 100755 --- a/plugins/php/versions/81/install.sh +++ b/plugins/php/versions/81/install.sh @@ -57,6 +57,10 @@ else fi +# 加快测试速度 For Github Action +MAKEJN='${SYS_MAKEJN:+"-j1"}' +echo "SYS_MAKEJN:$MAKEJN" + echo "$sourcePath/php/php${PHP_VER}" if [ ! -d $serverPath/php/${PHP_VER} ];then @@ -83,7 +87,7 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then --disable-fileinfo \ $OPTIONS \ --enable-fpm - make clean && make && make install && make clean + make clean && make $MAKEJN && make install && make clean fi #------------------------ install end ------------------------------------# }