@@ -292,7 +292,7 @@ runs:
292
292
shell : nu {0}
293
293
env :
294
294
UV_NO_MODIFY_PATH : 1
295
- UV_VERSION : ' 0.8.9 '
295
+ UV_VERSION : ' 0.8.11 '
296
296
run : |-
297
297
let action_path = $env.GITHUB_ACTION_PATH | path expand
298
298
$env.UV_INSTALL_DIR = $action_path | path join 'bin'
@@ -303,10 +303,17 @@ runs:
303
303
}
304
304
305
305
print $"\n(ansi purple)Installing uv version ($env.UV_VERSION)(ansi reset)"
306
- if ((sys host | get 'name') == 'Windows') {
307
- ^powershell -ExecutionPolicy ByPass -c $"irm https://astral.sh/uv/($env.UV_VERSION)/install.ps1 | iex"
306
+ let is_windows = (sys host | get 'name') == 'Windows'
307
+ let uv_installer_url = if $is_windows {
308
+ $"https://astral.sh/uv/($env.UV_VERSION)/install.ps1"
308
309
} else {
309
- ^curl -LsSf $"https://astral.sh/uv/($env.UV_VERSION)/install.sh" | sh
310
+ $"https://astral.sh/uv/($env.UV_VERSION)/install.sh"
311
+ }
312
+ let installer = http get --raw --redirect-mode follow $uv_installer_url
313
+ if $is_windows {
314
+ ^powershell -ExecutionPolicy ByPass $installer
315
+ } else {
316
+ $installer | ^sh
310
317
}
311
318
312
319
let gh_action_debug = $env | get --optional 'ACTIONS_STEP_DEBUG'
@@ -317,21 +324,19 @@ runs:
317
324
or ($gh_action_debug == 'true')
318
325
)
319
326
327
+ print $"\n(ansi purple)Installing workflow dependencies(ansi reset)"
320
328
mut uv_args = [sync --project $action_path --group action]
321
329
if $verbosity {
322
330
$uv_args = $uv_args | append '-v'
323
331
}
324
-
325
- print $"\n(ansi purple)Installing workflow dependencies(ansi reset)"
326
332
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args
327
333
334
+ print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
328
335
let cmd = [clang-tools -i ${{ inputs.version }} -b]
329
336
$uv_args = [run --no-sync --project $action_path --directory (pwd)]
330
337
if $verbosity {
331
338
$uv_args = $uv_args | append '-v'
332
339
}
333
-
334
- print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
335
340
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args ...$cmd
336
341
337
342
- name : Run cpp-linter
0 commit comments