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 bbc41a2 commit a8d13ce
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ jobs:
shell: powershell
run: |
$progressPreference = 'silentlyContinue'
$files = @(
$deps = @(
@{ 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';
Expand All @@ -69,14 +68,14 @@ jobs:
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
foreach ($dep in $deps) {
if ($dep.Url -ne $null) {
Write-Host "Downloading $($dep.Out)..."
Invoke-WebRequest -Uri $dep.Url -Url $dep.Out
}
Write-Host "Installing package `$($file.Out)`..."
Add-AppxPackage -Path $file.Out
Write-Host "Installing package `$($dep.Out)`..."
Add-AppxPackage -Path $dep.Out
}
Repair-WinGetPackageManager -IncludePrerelease
Expand Down

0 comments on commit a8d13ce

Please sign in to comment.