Skip to content

Commit 305f609

Browse files
authored
Merge pull request ClickHouse#78457 from ClickHouse/ci_build_ctcache_fix
CI: Clang-tidy-cache setup fix
2 parents ee16455 + 4de7331 commit 305f609

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ci/jobs/build_clickhouse.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ def parse_args():
7979
def 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}"

0 commit comments

Comments
 (0)