Skip to content

Commit

Permalink
chore: use nushell in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Jan 10, 2025
1 parent 478b437 commit 833dfad
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ jobs:
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
$installs = @(
# @{ Name = 'Chocolatey'; Action = {
# iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) 2>$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 = 'Chocolatey'; Action = {
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}},
@{ 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
Expand All @@ -84,7 +84,7 @@ jobs:
$installs | ForEach-Object {
Log "Starting installation of $($_.Name)..."
try {
& $_.Action 2>$null
& $_.Action > $null 2>&1
Log "$($_.Name) installation completed."
} catch {
Log "Failed to install $($_.Name)."
Expand Down

0 comments on commit 833dfad

Please sign in to comment.