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