Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel
Commits
6ecef55f
Commit
6ecef55f
authored
Oct 16, 2023
by
illsilin
Browse files
run sccache_wrapper before build if ccache server found
parent
35cf9b18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Jenkinsfile
Jenkinsfile
+6
-3
No files found.
Jenkinsfile
View file @
6ecef55f
...
...
@@ -110,7 +110,7 @@ def getDockerImage(Map conf=[:]){
{
echo
"CCACHE SERVER: ${env.CK_CCACHE} NOT FOUND, got ${check_host} response"
}
dockerArgs
=
dockerArgs
+
" --build-arg CCACHE_SECONDARY_STORAGE='redis://${env.CK_CCACHE}' --build-arg COMPILER_LAUNCHER='ccache' "
dockerArgs
=
dockerArgs
+
" --build-arg CCACHE_SECONDARY_STORAGE='redis://${env.CK_CCACHE}' --build-arg COMPILER_LAUNCHER='
s
ccache' "
env
.
CCACHE_DIR
=
"""/tmp/ccache_store"""
env
.
CCACHE_SECONDARY_STORAGE
=
"""redis://${env.CK_CCACHE}"""
}
...
...
@@ -153,7 +153,7 @@ def buildDocker(install_prefix){
{
echo
"CCACHE SERVER: ${env.CK_CCACHE} NOT FOUND, got ${check_host} response"
}
dockerArgs
=
dockerArgs
+
" --build-arg CCACHE_SECONDARY_STORAGE='redis://${env.CK_CCACHE}' --build-arg COMPILER_LAUNCHER='ccache' "
dockerArgs
=
dockerArgs
+
" --build-arg CCACHE_SECONDARY_STORAGE='redis://${env.CK_CCACHE}' --build-arg COMPILER_LAUNCHER='
s
ccache' "
env
.
CCACHE_DIR
=
"""/tmp/ccache_store"""
env
.
CCACHE_SECONDARY_STORAGE
=
"""redis://${env.CK_CCACHE}"""
}
...
...
@@ -233,6 +233,9 @@ def cmake_build(Map conf=[:]){
rm -rf install
mkdir install
cd build
if [ "${env.CK_CCACHE}" ]; then \
../script/sccache_wrapper.sh;
fi
"""
def
setup_cmd
=
conf
.
get
(
"setup_cmd"
,
"${cmake_envs} cmake ${setup_args} .. "
)
// reduce parallelism when compiling, clang uses too much memory
...
...
@@ -251,7 +254,7 @@ def cmake_build(Map conf=[:]){
sh
cmd
// Only archive from master or develop
if
(
package_build
==
true
&&
(
env
.
BRANCH_NAME
==
"develop"
||
env
.
BRANCH_NAME
==
"master"
))
{
if
(
package_build
==
true
&&
(
env
.
BRANCH_NAME
==
"develop"
||
env
.
BRANCH_NAME
==
"
amd-
master"
))
{
archiveArtifacts
artifacts:
"build/*.deb"
,
allowEmptyArchive:
true
,
fingerprint:
true
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment