ci.yml 1.7 KB

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