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 139a74f commit ba44bcc
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,19 @@ jobs:
}
$installs = @(
@{ Name = "LLVM 19.1.5 (aarch64)";
Action = { & "$env:GITHUB_WORKSPACE\LLVM-19.1.5-woa64.exe" /S } },
@{ Name = "Git 2.48.0-rc1 (aarch64)";
Action = { & "$env:GITHUB_WORKSPACE\Git-2.48.0-rc1-arm64.exe" /VERYSILENT } },
@{ 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'
@{ Name = "LLVM 19.1.5 (aarch64)"; Action = { & "$env:GITHUB_WORKSPACE\LLVM-19.1.5-woa64.exe" /S } },
@{ Name = "Git 2.48.0-rc1 (aarch64)"; Action = { & "$env:GITHUB_WORKSPACE\Git-2.48.0-rc1-arm64.exe" /VERYSILENT } },
@{ 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
}
}
} }
)
$installs | ForEach-Object {
Install -Name $_.Name -Action $_.Action
foreach ($install in $installs) {
Log -Message "Starting installation of $($install.Name)..."
&$install.Action
Log -Message "$($install.Name) installation completed."
}
$exports = @(
Expand Down

0 comments on commit ba44bcc

Please sign in to comment.