From ce58b295ff8fbf1655a0b529a7e16bf4854c4118 Mon Sep 17 00:00:00 2001 From: oberrich Date: Fri, 10 Jan 2025 12:29:01 +0100 Subject: [PATCH] chore: improve ci powershell --- .github/workflows/rust.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a52d7df..59a8624 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -55,7 +55,7 @@ jobs: $deps = @( @{ Name = 'Visual Studio 2022 Build Tools (aarch64)'; Hash = $null; Url = 'https://aka.ms/vs/17/release/vs_buildtools.exe'; - Args = @('/S', '--add', 'Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core', '--add', 'Microsoft.VisualStudio.Component.VC.Tools.ARM64', '--add', 'Microsoft.VisualStudio.Component.Windows11SDK.22621') }, + Args = @('--quiet', '--wait', '--norestart', --nocache', '--add', 'Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core', '--add', 'Microsoft.VisualStudio.Component.VC.Tools.ARM64', '--add', 'Microsoft.VisualStudio.Component.Windows11SDK.22621') }, @{ Name = 'Git 2.48.0-rc1'; Url = "${{github.workspace}}/Git-2.48.0-rc2-arm64.exe"; Hash = '712739bb49832d571732e3e74b111d7cb4a63cd622ef3e87d01efe35046d9a4f'; @@ -69,6 +69,7 @@ jobs: Hash = 'https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe.sha256'; Args = @('--default-host', 'aarch64-pc-windows-msvc', '--default-toolchain', 'nightly', '-y') } ) + $deps | ForEach-Object { $dep = $_ if ($dep.Url -match "^https?://") {