Skip to content

Commit

Permalink
Test usage of vswhere
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Nov 24, 2024
1 parent 0ed80ba commit 160c0ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/osgeo4w.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ jobs:
fail-fast: false

steps:
- run: vswhere
continue-on-error: true
- run: |
$path = vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
if ($path) {
$path = join-path $path 'Common7\Tools\vsdevcmd.bat'
if (test-path $path) {
cmd /s /c """$path"" $args && set" | where { $_ -match '(\w+)=(.*)' } | foreach {
$null = new-item -force -path "Env:\$($Matches[1])" -value $Matches[2]
}
}
}
continue-on-error: true
- run: vswhere -?
continue-on-error: true
- name: Set git to use LF
run: |
git config --global core.autocrlf false
Expand Down

0 comments on commit 160c0ae

Please sign in to comment.