1
0

ci.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Image Investigation
  2. on: workflow_dispatch # Çàïóñê âðó÷íóþ
  3. jobs:
  4. investigate:
  5. name: Explore Windows 2025 Image
  6. runs-on: windows-2025-vs2026
  7. steps:
  8. - name: System Inventory
  9. shell: pwsh
  10. run: |
  11. # 1. Âñå ïåðåìåííûå îêðóæåíèÿ
  12. Write-Host "--- ENVIRONMENT VARIABLES ---" -ForegroundColor Cyan
  13. Get-ChildItem Env: | Sort-Object Name | ForEach-Object { "$($_.Name)=$($_.Value)" }
  14. # 2. Ãëóáîêîå ñêàíèðîâàíèå Program Files (Ãëóáèíà 3)
  15. Write-Host "`n--- DIRECTORY TREE: PROGRAM FILES ---" -ForegroundColor Cyan
  16. $roots = @($env:ProgramFiles, ${env:ProgramFiles(x86)})
  17. foreach ($root in $roots) {
  18. if (Test-Path $root) {
  19. Write-Host "`n[ Root: $root ]" -ForegroundColor Yellow
  20. # Depth 2 äàåò íàì 3 óðîâíÿ (0 - êîðåíü, 1 - ïîäïàïêà, 2 - ïîä-ïîäïàïêà)
  21. Get-ChildItem -Path $root -Directory -Depth 2 -ErrorAction SilentlyContinue |
  22. Select-Object @{Name="Depth"; Expression={$_.FullName.Replace($root, "").Split('\').Count - 1}}, FullName |
  23. Sort-Object FullName |
  24. ForEach-Object { " " * $_.Depth + $_.FullName }
  25. }
  26. }
  27. # 3. Ïîèñê Visual Studio 2026 (÷åðåç vswhere)
  28. Write-Host "`n--- VISUAL STUDIO LOCATIONS (vswhere) ---" -ForegroundColor Cyan
  29. if (Get-Command vswhere -ErrorAction SilentlyContinue) {
  30. vswhere -latest -property installationPath
  31. } else {
  32. Write-Host "vswhere not found in PATH" -ForegroundColor Red
  33. }