You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Enable Developer Command Prompt
v1.4.1
GitHub Action for configuring Developer Command Prompt for Microsoft Visual C++.
This sets up the environment for compiling C/C++ code from command line.
Supports Windows. Does nothing on Linux and macOS.
arch
– target architecture- native compilation:
x86
,x64
(default),amd64
(synonym for x64) - cross-compilation:
x86_amd64
,x86_arm
,x86_arm64
,amd64_x86
,amd64_arm
,amd64_arm64
- native compilation:
sdk
– Windows SDK to use- do not specify to use the default SDK
- or specify full Windows 10 SDK number (e.g,
10.0.10240.0
) - or write
8.1
to use Windows 8.1 SDK
toolset
– select VC++ compiler toolset version- do not specify to use the default toolset
14.0
for VC++ 2015 Compiler Toolset14.XX
for the latest 14.XX toolset installed (e.g,14.11
)14.XX.YYYYY
for a specific full version number (e.g,14.11.25503
)
uwp
– settrue
to build for Universal Windows Platform (i.e., for Windows Store)spectre
– settrue
to use Visual Studio libraries with Spectre mitigations
jobs:
test:
- uses: actions/checkout@v1
- uses: ilammy/msvc-dev-cmd@v1
- name: Build something requiring CL.EXE
run: |
cmake -G "NMake Makefiles" .
nmake
# ...
MIT, see LICENSE.