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 c0cd9ae commit b238ec1
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,15 @@ jobs:
shell: powershell
run: |
$progressPreference = 'silentlyContinue'
$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';
Out = 'Microsoft.UI.Xaml.2.8.arm64.appx' },
@{ Url = $null;
Out = '${{github.workspace}}/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle' }
)
foreach ($dep in $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'; Out = 'Microsoft.UI.Xaml.2.8.arm64.appx' },
@{ Url = $null; Out = '${{github.workspace}}/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle' }
) | ForEach-Object {
$dep = $_
if ($dep.Url -ne $null) {
Write-Host "Downloading $($dep.Out)..."
Invoke-WebRequest -Uri $dep.Url -Url $dep.Out
Write-Host "Downloading $($dep.Out)..."
Invoke-WebRequest -Uri $dep.Url -OutFile $dep.Out
}
Write-Host "Installing package `$($dep.Out)`..."
Expand Down

0 comments on commit b238ec1

Please sign in to comment.