From 6de596c008389bd7230d27f72d6bb81f811925c1 Mon Sep 17 00:00:00 2001 From: oberrich Date: Fri, 10 Jan 2025 06:21:23 +0100 Subject: [PATCH] chore: use nushell in ci --- .github/workflows/rust.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 89cc1c7..953c16b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -62,8 +62,14 @@ jobs: Export-ModuleMember -Function Log $installs = @( - @{ Name = 'LLVM 19.1.5 (aarch64)'; Action = { & '${{github.workspace}}\LLVM-19.1.5-woa64.exe' /S } }, - @{ Name = 'Git 2.48.0-rc1 (aarch64)'; Action = { & '${{github.workspace}}\Git-2.48.0-rc1-arm64.exe' /VERYSILENT } }, + @{ Name = 'LLVM 19.1.5'; Action = { & '${{github.workspace}}\LLVM-19.1.5-woa64.exe' /S } }, + @{ Name = 'Git 2.48.0-rc1'; Action = { & '${{github.workspace}}\Git-2.48.0-rc1-arm64.exe' /VERYSILENT } }, + @{ 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')); + Add-Content -Path $env:GITHUB_PATH -Value "C:\ProgramData\chocolatey\bin" -Encoding utf8 + } } @{ Name = 'Visual Studio 2022 Build Tools (aarch64)'; Action = { choco install visualstudio2022buildtools -y --no-progress --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 } } ) @@ -75,9 +81,10 @@ jobs: } $exports = @( - "$env:USERPROFILE\.cargo\bin", # Rust - "$env:ProgramFiles\Git\cmd", # Git - "$env:ProgramFiles\Git\bin" # Bash + "$env:ProgramData\chocolatey\bin", # Chocolatey + "$env:USERPROFILE\.cargo\bin", # Rust + "$env:ProgramFiles\Git\cmd", # Git + "$env:ProgramFiles\Git\bin" # Bash ) $exports | ForEach-Object {