Skip to content

Commit 5089a5e

Browse files
authored
Create build.yml
1 parent fd64bbe commit 5089a5e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build project
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ "main" ]
7+
release:
8+
types: [published]
9+
10+
env:
11+
# Path to the solution file relative to the root of the project.
12+
SOLUTION_FILE_PATH: .
13+
14+
# Configuration type to build.
15+
# You can convert this to a build matrix if you need coverage of multiple configuration types.
16+
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
17+
BUILD_CONFIGURATION: Release
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
build:
24+
runs-on: windows-latest
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Add MSBuild to PATH
30+
uses: microsoft/setup-msbuild@v1.0.2
31+
32+
- name: Build
33+
working-directory: ${{env.GITHUB_WORKSPACE}}
34+
# Add additional options to the MSBuild command line here (like platform or verbosity level).
35+
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
36+
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

0 commit comments

Comments
 (0)