ci: diagnose tool restore environment
This commit is contained in:
1 file changed
+26
-2
+26
-2
@@ -37,7 +37,19 @@ jobs:
|
|||||||
nuget-${{ runner.os }}-
|
nuget-${{ runner.os }}-
|
||||||
- name: Restore tools
|
- name: Restore tools
|
||||||
shell: powershell
|
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
|
- name: Restore
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: dotnet restore src/RgbLedStripController/RgbLedStripController.csproj --configfile NuGet.Config
|
run: dotnet restore src/RgbLedStripController/RgbLedStripController.csproj --configfile NuGet.Config
|
||||||
@@ -81,7 +93,19 @@ jobs:
|
|||||||
nuget-${{ runner.os }}-
|
nuget-${{ runner.os }}-
|
||||||
- name: Restore tools
|
- name: Restore tools
|
||||||
shell: powershell
|
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
|
- name: Assert tag matches csproj version
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user