Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
3e1b1f99
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
3e1b1f99
编写于
9月 20, 2022
作者:
zhouweiwei2014
提交者:
GitHub
9月 20, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix CI sccache install dir (#46267)
上级
32c6ce2d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
7 deletion
+9
-7
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+5
-4
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+4
-3
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
3e1b1f99
...
@@ -116,7 +116,6 @@ if "%WITH_PYTHON%" == "ON" (
...
@@ -116,7 +116,6 @@ if "%WITH_PYTHON%" == "ON" (
rem -------Caching strategy 1: keep build directory for incremental compilation-----------
rem -------Caching strategy 1: keep build directory for incremental compilation-----------
rmdir
%BUILD_DIR%
\python
/s/q
rmdir
%BUILD_DIR%
\python
/s/q
rmdir
%BUILD_DIR%
\paddle\third_party\externalError
/s/q
rmdir
%BUILD_DIR%
\paddle\third_party\externalError
/s/q
rem rmdir %BUILD_DIR%\paddle\fluid\pybind /s/q
rmdir
%BUILD_DIR%
\paddle_install_dir
/s/q
rmdir
%BUILD_DIR%
\paddle_install_dir
/s/q
rmdir
%BUILD_DIR%
\paddle_inference_install_dir
/s/q
rmdir
%BUILD_DIR%
\paddle_inference_install_dir
/s/q
rmdir
%BUILD_DIR%
\paddle_inference_c_install_dir
/s/q
rmdir
%BUILD_DIR%
\paddle_inference_c_install_dir
/s/q
...
@@ -172,14 +171,16 @@ echo ipipe_log_param_Windows_Build_Cache: %Windows_Build_Cache%
...
@@ -172,14 +171,16 @@ echo ipipe_log_param_Windows_Build_Cache: %Windows_Build_Cache%
cd
/d
%BUILD_DIR%
cd
/d
%BUILD_DIR%
dir
.
dir
.
dir
%cache_dir%
dir
%cache_dir%
dir
paddle
\fluid\pybind\Release
rem -------Caching strategy 1: End --------------------------------
rem -------Caching strategy 1: End --------------------------------
rem -------Caching strategy 2: sccache decorate compiler-----------
rem -------Caching strategy 2: sccache decorate compiler-----------
if
not
defined
SCCACHE_ROOT
set
SCCACHE_ROOT
=
D
:\sccache
if
not
defined
SCCACHE_ROOT
set
SCCACHE_ROOT
=
D
:\sccache
set
PATH
=
%SCCACHE_ROOT%
;
%PATH%
if
"
%WITH_SCCACHE%
"
==
"ON"
(
if
"
%WITH_SCCACHE%
"
==
"ON"
(
cmd
/C
sccache
-V
||
call
:install
_sccache
cmd
/C
sccache
-V
||
call
:install
_sccache
cmd
/C
sccache
-V
||
echo
install
sccache
failed
!
sccache
--stop-server
2
>
NUL
sccache
--stop-server
2
>
NUL
del
%SCCACHE_ROOT%
\sccache_log.txt
del
%SCCACHE_ROOT%
\sccache_log.txt
...
@@ -203,7 +204,7 @@ if "%WITH_SCCACHE%"=="ON" (
...
@@ -203,7 +204,7 @@ if "%WITH_SCCACHE%"=="ON" (
sccache
-z
sccache
-z
goto
:CASE
_
%
1
goto
:CASE
_
%
1
)
else
(
)
else
(
del
%
PYTHON
_ROOT%
\sccache.exe
2
>
NUL
del
%
SCCACHE
_ROOT%
\sccache.exe
2
>
NUL
goto
:CASE
_
%
1
goto
:CASE
_
%
1
)
)
...
@@ -211,7 +212,7 @@ if "%WITH_SCCACHE%"=="ON" (
...
@@ -211,7 +212,7 @@ if "%WITH_SCCACHE%"=="ON" (
echo
There
is
not
sccache
in
this
PC
,
will
install
sccache
.
echo
There
is
not
sccache
in
this
PC
,
will
install
sccache
.
echo
Download
package
from
https
://paddle
-ci
.gz.bcebos.com/window_requirement/sccache.exe
echo
Download
package
from
https
://paddle
-ci
.gz.bcebos.com/window_requirement/sccache.exe
%PYTHON_ROOT%
\python.exe
-c
"import wget;wget.download('https://paddle-ci.gz.bcebos.com/window_requirement/sccache.exe')"
%PYTHON_ROOT%
\python.exe
-c
"import wget;wget.download('https://paddle-ci.gz.bcebos.com/window_requirement/sccache.exe')"
xcopy
sccache
.exe
%
PYTHON
_ROOT%
\
/Y
xcopy
sccache
.exe
%
SCCACHE
_ROOT%
\
/Y
del
sccache
.exe
del
sccache
.exe
goto
:eof
goto
:eof
rem -------Caching strategy 2: End --------------------------------
rem -------Caching strategy 2: End --------------------------------
...
...
paddle/scripts/paddle_build.sh
浏览文件 @
3e1b1f99
...
@@ -994,12 +994,13 @@ function generate_upstream_develop_api_spec() {
...
@@ -994,12 +994,13 @@ function generate_upstream_develop_api_spec() {
mkdir
-p
${
PADDLE_ROOT
}
/build/pr_whl
&&
mv
${
PADDLE_ROOT
}
/build/python/dist/
*
.whl
${
PADDLE_ROOT
}
/build/pr_whl/
mkdir
-p
${
PADDLE_ROOT
}
/build/pr_whl
&&
mv
${
PADDLE_ROOT
}
/build/python/dist/
*
.whl
${
PADDLE_ROOT
}
/build/pr_whl/
echo
"pr_whl_size:
${
pr_whl_size
}
"
echo
"pr_whl_size:
${
pr_whl_size
}
"
rm
-rf
${
PADDLE_ROOT
}
/build/Makefile
${
PADDLE_ROOT
}
/build/CMakeCache.txt
${
PADDLE_ROOT
}
/build/python
/paddle
rm
-rf
${
PADDLE_ROOT
}
/build/Makefile
${
PADDLE_ROOT
}
/build/CMakeCache.txt
${
PADDLE_ROOT
}
/build/python
cmake_change
=
`
git diff
--name-only
upstream/
$BRANCH
|
grep
"cmake/external"
||
true
`
cmake_change
=
`
git diff
--name-only
upstream/
$BRANCH
|
grep
"cmake/external"
||
true
`
cd
${
PADDLE_ROOT
}
cd
${
PADDLE_ROOT
}
git checkout
.
git fetch upstream
$BRANCH
git checkout
-b
develop_base_pr upstream/
$BRANCH
git checkout
-b
develop_base_pr
-t
upstream/
$BRANCH
git log
--pretty
=
oneline
-10
dev_commit
=
`
git log
-1
|head
-1
|awk
'{print $2}'
`
dev_commit
=
`
git log
-1
|head
-1
|awk
'{print $2}'
`
dev_url
=
"https://xly-devops.bj.bcebos.com/PR/build_whl/0/
${
dev_commit
}
/paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl"
dev_url
=
"https://xly-devops.bj.bcebos.com/PR/build_whl/0/
${
dev_commit
}
/paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录