Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

How to run Visual Studio command line tools

I'm experimenting with building my project on Windows with Github Actions. My build is all set up as a command line `nmake` command. On my local PC, I would open a Visual Studio "x64 Native Tools" command prompt, and just run "nmake /f make_mvc.mak".

 

If I try this in a Github action, I don't have "nmake" in my PATH, and I don't know how to run the "x64 Native Tools" setup script from the action (it's a bat file, and the action runs as Powershell).

 

What's the recommended way of running the Visual Studio command line tools from a GH action? I couldn't find anything obvious in the docs.

 

I don't have the option to change the build process, as the project I'm building is not my project (it's actually the vim editor).

1 Reply
Pilot Lvl 2
Message 2 of 2

Re: How to run Visual Studio command line tools


@pfmoore wrote:

I don't know how to run the "x64 Native Tools" setup script from the action (it's a bat file, and the action runs as Powershell).

If shell is only problem here, you can easily change it for step which calls .bat; see using a specific shell. Powershell is just default one, but it's not enforced in any way - as long each step have `shell: cmd`, you can forget powershell even exists.