Skip to content

Commit c865ee2

Browse files
authored
Create msbuild.yml
1 parent 61cbad7 commit c865ee2

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/msbuild.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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: [ "master" ]
11+
12+
env:
13+
# Path to the solution file relative to the root of the project.
14+
SOLUTION_FILE_PATH: .
15+
16+
# Configuration type to build.
17+
# You can convert this to a build matrix if you need coverage of multiple configuration types.
18+
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
19+
BUILD_CONFIGURATION: QtRelease
20+
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
build:
26+
runs-on: windows-latest
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- name: Add MSBuild to PATH
32+
uses: microsoft/[email protected]
33+
34+
- name: Restore NuGet packages
35+
working-directory: ${{env.GITHUB_WORKSPACE}}
36+
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
37+
38+
- name: Build
39+
working-directory: ${{env.GITHUB_WORKSPACE}}
40+
# Add additional options to the MSBuild command line here (like platform or verbosity level).
41+
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
42+
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

0 commit comments

Comments
 (0)