Skip to content

Commit

Permalink
feat(tiflash): install clang-format-17 if not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
  • Loading branch information
Lloyd-Pottiger committed Apr 10, 2024
1 parent 0f4a97e commit d3b2c81
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jenkins/pipelines/ci/tiflash/tiflash-build-common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,12 @@ def resolveDependency(dep_name) {
chmod +x '/usr/local/bin/clang-format-15'
"""
}
else if (dep_name == 'clang-format-17') {
sh """
cp '${dependency_dir}/clang-format-17' '/usr/local/bin/clang-format-17'
chmod +x '/usr/local/bin/clang-format-17'
"""
}
else if (dep_name == 'gcovr') {
sh """
cp '${dependency_dir}/gcovr.tar' '/tmp/'
Expand Down Expand Up @@ -492,6 +498,11 @@ def prepareStage(repo_path) {
resolveDependency('clang-format-15')
}
},
"Clang-Format-17" : {
if (params.ENABLE_CCACHE) {
resolveDependency('clang-format-17')
}
},
"Coverage" : {
if (getToolchain(repo_path) == 'legacy' && params.ENABLE_COVERAGE) {
resolveDependency('gcovr')
Expand Down

0 comments on commit d3b2c81

Please sign in to comment.