Search code examples
c++githubvisual-c++github-actions

How can I use the MSVC compiler from Github Actions?


I want to have a pipeline which compiles my code with MSVC++ cl compiler, since my native project is done in Visual Studio. How can I import these tools, and on which Operating Systems are they available on?


Solution

  • I found a GitHub repo that allows you to use MSVC++ tools. Just add this before your job:
    - uses: ilammy/msvc-dev-cmd@v1
    Here's my workflow file for reference:
    https://github.com/satanic-santa/spark/blob/master/.github/workflows/compile.yml