Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxinyi389 committed Mar 15, 2024
1 parent 0b167fd commit 8ccb2cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions paddle/scripts/paddle_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -492,11 +492,11 @@ echo %task_name%|findstr build >nul && (

:cmake_impl
cd /d %work_dir%\%BUILD_DIR%
python -m pip install github
python -m pip install PyGithub
python %work_dir%\tools\windows\check_only_change_python_files.py
if exit %work_dir%\%BUILD_DIR%\only_change_python_file (
set WITH_CPP_TEST=OFF
if "%WITH_GPU%"=="ON" (
python -m pip install github
python -m pip install PyGithub
python %work_dir%\tools\windows\check_only_change_python_files.py
if exist %work_dir%\%BUILD_DIR%\only_change_python_file.txt set WITH_CPP_TEST=OFF
)
echo WITH_CPP_TEST: %WITH_CPP_TEST%
echo cmake .. -G %GENERATOR% -DCMAKE_BUILD_TYPE=Release -DWITH_AVX=%WITH_AVX% -DWITH_GPU=%WITH_GPU% -DWITH_MKL=%WITH_MKL% ^
Expand Down
2 changes: 1 addition & 1 deletion tools/windows/check_only_change_python_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ def check_only_change_python_file(self):
pr_checker = PRChecker()
pr_checker.init()
if pr_checker.check_only_change_python_file():
with open('only_change_python_file', 'w') as f:
with open('only_change_python_file.txt', 'w') as f:
f.write('yes')

0 comments on commit 8ccb2cc

Please sign in to comment.