From ead3315170409e2a859419251cf264ce4b47532c Mon Sep 17 00:00:00 2001 From: fristyxd Date: Sat, 5 Sep 2026 15:57:22 +0300 Subject: [PATCH] ci: diagnose tool restore environment --- .gitea/workflows/ci.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b41a32c..6dd8402 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -37,7 +37,19 @@ jobs: nuget-${{ runner.os }}- - name: Restore tools shell: powershell - run: dotnet tool restore --tool-manifest .config/dotnet-tools.json + run: | + $ErrorActionPreference = "Stop" + Get-Location + Get-ChildItem .config -File + Write-Output "USERPROFILE=$env:USERPROFILE" + Write-Output "DOTNET_CLI_HOME=$env:DOTNET_CLI_HOME" + Write-Output "DOTNET_ROOT=$env:DOTNET_ROOT" + Write-Output "NUGET_PACKAGES=$env:NUGET_PACKAGES" + dotnet --list-sdks + dotnet tool restore --tool-manifest .config/dotnet-tools.json + if ($LASTEXITCODE -ne 0) { throw "tool restore failed ($LASTEXITCODE)" } + dotnet tool list + Get-ChildItem "$env:USERPROFILE/.dotnet/tools" -Recurse -ErrorAction SilentlyContinue | Select-Object FullName - name: Restore shell: powershell run: dotnet restore src/RgbLedStripController/RgbLedStripController.csproj --configfile NuGet.Config @@ -81,7 +93,19 @@ jobs: nuget-${{ runner.os }}- - name: Restore tools shell: powershell - run: dotnet tool restore --tool-manifest .config/dotnet-tools.json + run: | + $ErrorActionPreference = "Stop" + Get-Location + Get-ChildItem .config -File + Write-Output "USERPROFILE=$env:USERPROFILE" + Write-Output "DOTNET_CLI_HOME=$env:DOTNET_CLI_HOME" + Write-Output "DOTNET_ROOT=$env:DOTNET_ROOT" + Write-Output "NUGET_PACKAGES=$env:NUGET_PACKAGES" + dotnet --list-sdks + dotnet tool restore --tool-manifest .config/dotnet-tools.json + if ($LASTEXITCODE -ne 0) { throw "tool restore failed ($LASTEXITCODE)" } + dotnet tool list + Get-ChildItem "$env:USERPROFILE/.dotnet/tools" -Recurse -ErrorAction SilentlyContinue | Select-Object FullName - name: Assert tag matches csproj version shell: powershell run: |