File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,6 @@ def parse_args():
7979def main ():
8080 args = parse_args ()
8181
82- # # for sccache
83- os .environ ["SCCACHE_BUCKET" ] = Settings .S3_ARTIFACT_PATH
84- os .environ ["SCCACHE_S3_KEY_PREFIX" ] = "ccache/sccache"
85-
8682 stop_watch = Utils .Stopwatch ()
8783
8884 stages = list (JobStages )
@@ -104,6 +100,13 @@ def main():
104100
105101 cmake_cmd = BUILD_TYPE_TO_CMAKE [build_type ]
106102 info = Info ()
103+ if not info .is_local_run :
104+ os .environ ["SCCACHE_BUCKET" ] = Settings .S3_ARTIFACT_PATH
105+ os .environ ["SCCACHE_S3_KEY_PREFIX" ] = "ccache/sccache"
106+ os .environ ["CTCACHE_DIR" ] = "ccache/clang-tidy-cache"
107+ os .environ ["CTCACHE_S3_BUCKET" ] = Settings .S3_ARTIFACT_PATH
108+ os .environ ["CTCACHE_S3_FOLDER" ] = "clang-tidy-cache"
109+ os .environ ["CTCACHE_S3_NO_CREDENTIALS" ] = "true"
107110 if info .pr_number == 0 :
108111 cmake_cmd += " -DCLICKHOUSE_OFFICIAL_BUILD=1"
109112 cmake_cmd += f" { current_directory } "
You can’t perform that action at this time.
0 commit comments