ci: remove 3rd party js from windows dll gha job

We can use vswhere.exe directly to create a vs developer
prompt and so can remove this third party dependency.

Co-authored-by: David Gumberg <davidzgumberg@gmail.com>
This commit is contained in:
Max Edwards 2025-09-25 18:11:37 +01:00
parent 1444ed855f
commit 7ae0497eef
1 changed files with 9 additions and 5 deletions

View File

@ -211,11 +211,15 @@ jobs:
steps: steps:
- *CHECKOUT - *CHECKOUT
- name: Configure Developer Command Prompt for Microsoft Visual C++ - name: Set up VS Developer Prompt
# Using microsoft/setup-msbuild is not enough. shell: pwsh -Command "$PSVersionTable; $PSNativeCommandUseErrorActionPreference = $true; $ErrorActionPreference = 'Stop'; & '{0}'"
uses: ilammy/msvc-dev-cmd@v1 run: |
with: $vswherePath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
arch: x64 $installationPath = & $vswherePath -latest -property installationPath
& "${env:COMSPEC}" /s /c "`"$installationPath\Common7\Tools\vsdevcmd.bat`" -arch=x64 -no_logo && set" | foreach-object {
$name, $value = $_ -split '=', 2
echo "$name=$value" >> $env:GITHUB_ENV
}
- name: Get tool information - name: Get tool information
shell: pwsh shell: pwsh