A composite GitHub Action to download, install, and setup the environment for a particular version of MSVC on Windows.
This is specifically meant for C++, and only installs the minimal components needed to set up the environment and compile C++.
This example uses Visual Studio 17.13.3, as described in this article.
- name: Setup MSVC
uses: k3DW/setup-msvc@v1
with:
vs-version: "17.13.3"vs-versionis a required input, denoting the specific version of Visual Studio to install.- The patch version can be omitted, which will install the most recent patch in the minor release series. For example specifying
17.13will install17.13.7. - Note, you should quote this input, otherwise you may get unexpected results.
17.13.0will be sent as17.13, which will install17.13.7. Instead,"17.13.0"will successfully install17.13.0.
- The patch version can be omitted, which will install the most recent patch in the minor release series. For example specifying
install-pathis an optional input, denoting the path at which Visual Studio is installed.- It defaults to
..\vs-install.
- It defaults to
At the moment, this action does not work with actions/cache@v4. There is currently no known working caching solution for this action.