diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5bf8907..f134e59 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -51,8 +51,21 @@ jobs: if: matrix.os == 'windows-11-preview_aarch64' shell: powershell run: | - Get-AppxPackage -AllUsers Microsoft.DesktopAppInstaller | Foreach {Add-AppxPackage -Path $_.InstallLocation + '\AppXManifest.xml'} - winget install nushell + # Get-AppxPackage -AllUsers Microsoft.DesktopAppInstaller | Foreach {Add-AppxPackage -Path $_.InstallLocation + '\AppXManifest.xml'} + $msi = @{ + FilePath = 'msiexec.exe' + ArgumentList = @( + '/i "${{github.workspace}}\nu-0.101.0-${{ matrix.target }}.msi" ALLUSERS="1"' + '/qn' + '/L*v 'nu-install.log'' + ) + Wait = $true + NoNewWindow = $true + } + + "C:\Program Files\nu\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + Write-Host "nu installation log:" + Get-Content nu-install.log - name: Use nushell if: matrix.os == 'windows-11-preview_aarch64'