Skip to content

Commit 4600757

Browse files
authored
add MSBuild workflow
1 parent 69e88f9 commit 4600757

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/msbuild.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: MSBuild
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Setup vcpkg
13+
uses: lukka/run-vcpkg@v11
14+
with:
15+
vcpkgJsonGlob: 'vcpkg.json'
16+
17+
- name: Add MSBuild to PATH
18+
uses: microsoft/setup-msbuild@v2
19+
20+
- name: Restore NuGet packages
21+
working-directory: ${{env.GITHUB_WORKSPACE}}
22+
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
23+
24+
- name: Build
25+
working-directory: ${{env.GITHUB_WORKSPACE}}
26+
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
27+
run: msbuild SimpleXmlValidator.sln /p:Configuration=Release /p:Platform=x64 `
28+
/p:VcpkgEnableManifest=true

0 commit comments

Comments
 (0)