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 9cec500 commit c38a579
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,22 @@ jobs:
if: matrix.os == 'windows-11-preview_aarch64'
shell: powershell
run: |
# Install NuGet provider for PowerShell
Install-PackageProvider -Name NuGet -Force | Out-Null
# Install Microsoft.WinGet.Client module from PSGallery
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery | Out-Null
# Direct download and install of the latest Microsoft.DesktopAppInstaller
Invoke-WebRequest -Uri "https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -OutFile "$env:RUNNER_TEMP\Microsoft.DesktopAppInstaller.msixbundle"
Add-AppxPackage -Path "$env:RUNNER_TEMP\Microsoft.DesktopAppInstaller.msixbundle"
# Clean up the downloaded file
Remove-Item -Path "$env:RUNNER_TEMP\Microsoft.DesktopAppInstaller.msixbundle" -Force
# Repair the WinGet package manager
Repair-WinGetPackageManager -IncludePrerelease
winget install nushell
"C:\Program Files\nu\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Expand Down

0 comments on commit c38a579

Please sign in to comment.