From 6750c2c269f88df13b993759e20c8fb5d20f8bd3 Mon Sep 17 00:00:00 2001 From: oberrich Date: Fri, 10 Jan 2025 06:46:30 +0100 Subject: [PATCH] chore: use nushell in ci --- .github/workflows/rust.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6b87aa2..12fa413 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -60,6 +60,14 @@ jobs: } $installs = @( + # @{ Name = 'Chocolatey'; Action = { + # Set-ExecutionPolicy Bypass -Scope Process -Force + # [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 + # iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | Out-Null + # }}, + # @{ Name = 'Visual Studio 2022 Build Tools (aarch64)'; Action = { + # choco install visualstudio2022buildtools -y --no-progress --silent --package-parameters '--add Microsoft.VisualStudio.Component.VC.Tools.ARM64 --add Microsoft.VisualStudio.Component.Windows11SDK.22621' + # }}, @{ Name = 'Rust (nightly, aarch64)'; Action = { Invoke-WebRequest -Uri 'https://win.rustup.rs/aarch64' -OutFile '${{github.workspace}}\rustup-init.exe'; & '${{github.workspace}}\rustup-init.exe' --default-host aarch64-pc-windows-msvc --default-toolchain nightly -y @@ -86,9 +94,8 @@ jobs: ) $exports | ForEach-Object { - $path = $_ - Add-Content -Path $env:GITHUB_PATH -Value $path - Log -Message "Added $path to \$GITHUB_PATH" + $_ | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + Log -Message "Added $_ to \$GITHUB_PATH" } - name: Install Rust