File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ name : MSBuild
7
+
8
+ on :
9
+ push :
10
+ branches : [ "main" ]
11
+ pull_request :
12
+ branches : [ "main" ]
13
+
14
+ env :
15
+ # Path to the solution file relative to the root of the project.
16
+ SOLUTION_FILE_PATH : .
17
+
18
+ # Configuration type to build.
19
+ # You can convert this to a build matrix if you need coverage of multiple configuration types.
20
+ # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
21
+ BUILD_CONFIGURATION : Release
22
+
23
+ permissions :
24
+ contents : read
25
+
26
+ jobs :
27
+ build :
28
+ runs-on : windows-latest
29
+
30
+ steps :
31
+ - uses : actions/checkout@v3
32
+
33
+ - name : Add MSBuild to PATH
34
+
35
+
36
+ - name : Restore NuGet packages
37
+ working-directory : ${{env.GITHUB_WORKSPACE}}
38
+ run : nuget restore ${{env.SOLUTION_FILE_PATH}}
39
+
40
+ - name : Build
41
+ working-directory : ${{env.GITHUB_WORKSPACE}}
42
+ # Add additional options to the MSBuild command line here (like platform or verbosity level).
43
+ # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
44
+ run : msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
You can’t perform that action at this time.
0 commit comments