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 c38a579 commit cd75576
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,35 +41,20 @@ jobs:
repository: 'llvm/llvm-project'
tag: 'llvmorg-19.1.5'
filename: 'LLVM-19.1.5-woa64.exe'
- if: matrix.os == 'windows-11-preview_aarch64'
uses: robinraju/release-downloader@v1
with:
repository: 'nushell/nushell'
tag: '0.101.0'
filename: 'nu-0.101.0-${{ matrix.target }}.msi'
- name: "Install nushell"
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
Install-PackageProvider -Name NuGet -Force
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery
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"
Remove-Item -Path "$env:RUNNER_TEMP\Microsoft.DesktopAppInstaller.msixbundle" -Force
Repair-WinGetPackageManager -IncludePrerelease
winget install nushell
"C:\Program Files\nu\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Use nushell
if: matrix.os == 'windows-11-preview_aarch64'
Expand Down

0 comments on commit cd75576

Please sign in to comment.