diff --git a/.github/workflows/_Clone-linux.yml b/.github/workflows/_Clone-linux.yml index ace1d9a49c..253af1884b 100644 --- a/.github/workflows/_Clone-linux.yml +++ b/.github/workflows/_Clone-linux.yml @@ -62,6 +62,11 @@ jobs: git merge --no-edit ${BRANCH} git submodule sync git submodule update --init --recursive --force + cd Paddle/third_party/protobuf + git fetch --tags + cd ../pybind + git fetch --tags + cd ../../.. - name: Download bos client env: diff --git a/.github/workflows/_IXUCA.yml b/.github/workflows/_IXUCA.yml index c8587a6d12..c310d99400 100644 --- a/.github/workflows/_IXUCA.yml +++ b/.github/workflows/_IXUCA.yml @@ -81,6 +81,7 @@ jobs: workflow-name: ixuca - name: RUN IXUCA + id: run-ixuca if: steps.check-bypass.outputs.can-skip != 'true' run: | docker exec -t ${{ env.container_name }} /bin/bash -c ' @@ -94,9 +95,13 @@ jobs: if [ $change_numbers -ne $change_backend ]; then echo "Common file changed, continue to run IXUCA FULL CI test ..." + echo "should_skip=false" >> $GITHUB_OUTPUT elif [ $change_ixuca_only -eq 0 ] ; then echo "NO IXUCA backend changes found, skip IXUCA FULL CI ...." + echo "should_skip=true" >> $GITHUB_OUTPUT exit 0 + else + echo "should_skip=false" >> $GITHUB_OUTPUT fi export PATH=/usr/local/corex-4.3.0/bin:$PATH @@ -106,8 +111,8 @@ jobs: python3 -m pip install --pre paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/ python3 -m pip install parameterized' - - name: Build and Install Paddle - if: steps.check-bypass.outputs.can-skip != 'true' + - name: Build and Install paddle_iluvatar_gpu + if: steps.check-bypass.outputs.can-skip != 'true' && steps.run-ixuca.outputs.should_skip != 'true' run: | docker exec -t ${{ env.container_name }} /bin/bash -c ' cd /workspace/PaddleCustomDevice/backends/iluvatar_gpu @@ -117,7 +122,7 @@ jobs: bash install_paddle.sh' - name: Run Tests - if: steps.check-bypass.outputs.can-skip != 'true' + if: steps.check-bypass.outputs.can-skip != 'true' && steps.run-ixuca.outputs.should_skip != 'true' run: | docker exec -t ${{ env.container_name }} /bin/bash -c ' cd /workspace/PaddleCustomDevice/backends/iluvatar_gpu/tests diff --git a/backends/iluvatar_gpu/build_paddle.sh b/backends/iluvatar_gpu/build_paddle.sh index 79c1787998..8d9f8a7820 100644 --- a/backends/iluvatar_gpu/build_paddle.sh +++ b/backends/iluvatar_gpu/build_paddle.sh @@ -39,6 +39,7 @@ fi pushd ${CURRENT_DIR}/../../ git submodule update --init --recursive --force popd +echo "=== Submodule init successfully ===" bash clean_paddle.sh