Skip to content

Commit

Permalink
Building samples solution in GitHub CI for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-hawker committed Nov 19, 2024
1 parent 912c928 commit 2f01f85
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/managed-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,35 @@ jobs:
name: msbuild_binlog_Release_x64
path: msbuild.binlog
if-no-files-found: error

samples-build:
runs-on: windows-latest
steps:
- name: Checkout XamlBehaviors.git
uses: actions/checkout@v4

- name: Install the .NET 9.0.100 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.100

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Setup/Install NuGet 6.11.0
uses: nuget/setup-nuget@v2
with:
nuget-version: '6.11.0'

- name: NuGet Restore BehaviorsSDKManaged.sln
run: nuget restore samples\CS\XAMLBehaviorsSample.sln

- name: Build BehaviorsSDKManaged.sln
run: msbuild samples\CS\XAMLBehaviorsSample.sln /p:Configuration=Release -v:diag /bl

- name: Upload MSBuild binary log
uses: actions/upload-artifact@v4
with:
name: msbuild_samples_binlog_Release_x64
path: msbuild.binlog
if-no-files-found: error

0 comments on commit 2f01f85

Please sign in to comment.