'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 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1