From f78ec4efbe266a1363458ea41881837df1523d2f Mon Sep 17 00:00:00 2001 From: oberrich Date: Fri, 10 Jan 2025 05:10:41 +0100 Subject: [PATCH] chore: use nushell in ci --- .github/workflows/rust.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3774b1b..bfba4bd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -87,7 +87,20 @@ jobs: } Write-Host "Installing nushell..." - winget install -e --id Nushell.Nushell -v 0.101.0 --accept-package-agreements --accept-source-agreements --silent + winget install -e --id Nushell.Nushell -v 0.101.0 --accept-package-agreements --accept-source-agreements --silent -ErrorAction SilentlyContinue + + # Define the log file path using a glob pattern + $logPattern = "C:\Users\runneradmin\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Nushell.Nushell*.log" + + # Get the most recent log file matching the pattern (if there are multiple matches) + $logFile = Get-ChildItem -Path $logPattern | Sort-Object LastWriteTime -Descending | Select-Object -First 1 + + # Output the log file contents + if ($logFile) { + Get-Content $logFile.FullName + } else { + Write-Host "No log file found matching the pattern." + } - name: Use nushell if: matrix.os == 'windows-11-preview_aarch64' run: |