ci: diagnose tool restore environment
CI / build-and-test (push) Successful in 4m58s
CI / release (push) Failing after 8m23s

This commit is contained in:
fristy committed 2026-09-05 15:57:22 +03:00
1 parent 0a0ce5c267
commit ead3315170
1 file changed
+26 -2
+26 -2
View File
@@ -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: |