File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -378,12 +378,15 @@ runs:
378378 ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args
379379
380380 print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
381- let cmd = [clang-tools-wheel --tool clang-format --version ${{ inputs.version }}, clang-tools-wheel --tool clang-tidy --version ${{ inputs.version }}]
382- $uv_args = [run --no-sync --project $action_path --directory (pwd)]
383- if $verbosity {
384- $uv_args = $uv_args | append '-v'
381+ let tools = ['clang-format' 'clang-tidy']
382+ for tool in $tools {
383+ let cmd = [clang-tools-wheel --tool $tool --version ${{ inputs.version }}]
384+ $uv_args = [run --no-sync --project $action_path --directory (pwd)]
385+ if $verbosity {
386+ $uv_args = $uv_args | append '-v'
387+ }
388+ ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args ...$cmd
385389 }
386- ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args ...$cmd
387390
388391 - name : Run cpp-linter
389392 id : cpp-linter
You can’t perform that action at this time.
0 commit comments