Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find vcvarsall.bat #83

Open
urielmann opened this issue Jun 11, 2024 · 3 comments
Open

Unable to find vcvarsall.bat #83

urielmann opened this issue Jun 11, 2024 · 3 comments

Comments

@urielmann
Copy link

urielmann commented Jun 11, 2024

Run ilammy/[email protected]
  with:
    arch: x64
    sdk: 10.0.19041.0
    toolset: 14.0
    vsversion: 16.0
  env:
    BUILD_TYPE: Release
  
Not found with vswhere
Trying standard location: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
Trying standard location: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat
Trying standard location: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
Trying standard location: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat
Trying standard location: C:\Program Files\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
Trying standard location: C:\Program Files\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat
Trying standard location: C:\Program Files\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
Trying standard location: C:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat
Not found in standard locations
Not found in VS 2015 location: C:\Program Files (x86)\Microsoft Visual C++ Build Tools\vcbuildtools.bat
Error: Could not setup Developer Command Prompt: Microsoft Visual Studio not found
@pzhlkj6612
Copy link
Contributor

Hi!

You were using vsversion: 16.0 so this action was trying to find VS 2019. Did you run your workflow on "windows-latest" or "windows-2022"? There is only VS 2022 on that OS 1. Omitting the vsversion parameter may solve the problem. You can also use "windows-2019" as the platform to run VS 2019 2.

In addition, IIRC, the toolset: 14.0 parameter MAY not work since there is no "14.0" VC++ toolset on GitHub Actions runners. See:

.

Footnotes

  1. https://github.com/actions/runner-images/blob/win22/20240603.1/images/windows/Windows2022-Readme.md?plain=1#L222-L225

  2. https://github.com/actions/runner-images/blob/win19/20240603.1/images/windows/Windows2019-Readme.md?plain=1#L229-L232

@urielmann
Copy link
Author

Thanks for your response. I suggest updating READM.md to help determine which specific compilers and SDK versions are supported.

@pzhlkj6612
Copy link
Contributor

I suggest updating READM.md to help determine which specific compilers and SDK versions are supported.

Good suggestion! I think I will make a PR later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants