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 3eca59f commit bbc41a2
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -59,10 +59,27 @@ jobs:
shell: powershell
run: |
$progressPreference = 'silentlyContinue'
Install-PackageProvider -Name NuGet -Force | Out-Null
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery | Out-Null
Repair-WinGetPackageManager -IncludePrerelease
$files = @(
@{ Url = 'https://aka.ms/Microsoft.VCLibs.arm64.14.00.Desktop.appx';
Out = 'Microsoft.VCLibs.arm64.14.00.Desktop.appx' },
@{ Url = 'https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.arm64.appx';
Out = 'Microsoft.UI.Xaml.2.8.x64.appx' },
@{ Url = $null;
Out = '${{github.workspace}}/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle' }
)
foreach ($file in $files) {
if ($file.Url -nq $null) {
Write-Host "Downloading $($file.Out)..."
Invoke-WebRequest -Uri $file.Url -Url $file.Out
}
Write-Host "Installing package `$($file.Out)`..."
Add-AppxPackage -Path $file.Out
}
Repair-WinGetPackageManager -IncludePrerelease
winget install nushell --accept-package-agreements --accept-source-agreements
- name: Use nushell

0 comments on commit bbc41a2

Please sign in to comment.