raulcd commented on code in PR #51610:
URL: https://github.com/apache/arrow/pull/51610#discussion_r4121286130
##########
.github/workflows/cpp_windows.yml:
##########
@@ -115,12 +115,17 @@ jobs:
with:
path: ${{ steps.ccache-info.outputs.cache-dir }}
key: cpp-ccache-windows-${{ inputs.arch }}
+ - name: Find Visual Studio
+ shell: bash
+ run: |
+ vs_path=$("/c/Program Files (x86)/Microsoft Visual
Studio/Installer/vswhere.exe" -latest -property installationPath)
+ echo "VS_INSTALL_PATH=${vs_path}" >> "${GITHUB_ENV}"
- name: Build
shell: cmd
env:
VCVARS_ARCH: ${{ inputs.arch }}
run: |
- call "C:\Program Files\Microsoft Visual
Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_ARCH%
Review Comment:
@kou there are 13 other places where we are hardcoding this path
(`C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\`). Those seem
all to use the `windows-2022` GitHub runner but we probably should update them
too. If we are happy with the approach I can change them to use `vswhere` to
detect the path.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]