17 lines
820 B
YAML
17 lines
820 B
YAML
name: probe-windows
|
|
on: push
|
|
jobs:
|
|
probe:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- run: |
|
|
$PSVersionTable.PSVersion
|
|
whoami; hostname; Get-Location
|
|
[Environment]::OSVersion
|
|
foreach ($c in 'git','bash','pwsh','powershell','python','python3','curl','tar','7z','cmake','ninja','flutter','dart','node','cl','msbuild') { $p = Get-Command $c -ErrorAction SilentlyContinue; "{0,-12} {1}" -f $c, ($p.Source) }
|
|
$vw = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
|
|
if (Test-Path $vw) { & $vw -all -products * -format text | Select-String 'displayName|installationPath|installationVersion' } else { 'no vswhere' }
|
|
Get-PSDrive -PSProvider FileSystem | Select-Object Name,Free
|
|
"PATH=$env:PATH"
|
|
shell: powershell
|