File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : MSBuild
2+
3+ on : [push]
4+
5+ env :
6+ # Path to the solution file relative to the root of the project.
7+ SOLUTION_FILE_PATH : .
8+
9+ # Configuration type to build.
10+ # You can convert this to a build matrix if you need coverage of multiple configuration types.
11+ # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
12+ BUILD_CONFIGURATION : Release
13+
14+ jobs :
15+ build :
16+ runs-on : windows-latest
17+
18+ steps :
19+ - uses : actions/checkout@v2
20+
21+ - name : Add MSBuild to PATH
22+ uses : microsoft/setup-msbuild@v1
23+
24+ - name : Restore NuGet packages
25+ working-directory : ${{env.GITHUB_WORKSPACE}}
26+ run : nuget restore ${{env.SOLUTION_FILE_PATH}}
27+
28+ - name : Build
29+ working-directory : ${{env.GITHUB_WORKSPACE}}
30+ # Add additional options to the MSBuild command line here (like platform or verbosity level).
31+ # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
32+ run : msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " MSBuild based projects" ,
3+ "description" : " Build a MSBuild based project." ,
4+ "iconName" : " c-cpp" ,
5+ "categories" : [" C" , " C++" ]
6+ }
You can’t perform that action at this time.
0 commit comments