-
Notifications
You must be signed in to change notification settings - Fork 1.9k
52 lines (44 loc) · 1.53 KB
/
build-validation.yml
File metadata and controls
52 lines (44 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: .NET Build Validation
'on':
pull_request:
branches: [ main ]
paths:
- 'samples/**/*.cs'
- 'samples/**/*.csproj'
- 'samples/**/*.sln'
- 'samples/**/*.slnx'
- 'samples/**/*.razor'
- 'samples/**/*.json'
- '.github/workflows/build-validation.yml'
jobs:
build:
name: Build .NET Projects
runs-on: ubuntu-latest
strategy:
fail-fast: false # Show results for all projects even if some fail
matrix:
solution:
- path: "samples/CoreSamples/CoreGenerativeAITechniques.sln"
name: "Core Samples"
- path: "samples/PracticalSamples/Aspire.MCP.Sample.sln"
name: "Practical Samples - Aspire MCP"
- path: "samples/AppsWithGenAI/HFMCP.GenImage/HFMCP.GenImage.sln"
name: "HFMCP GenImage App"
- path: "samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln"
name: "SpaceAINet App"
- path: "samples/MAF/MAF-Demos.slnx"
name: "MAF Demos"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET 10.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies for ${{ matrix.solution.name }}
run: dotnet restore "${{ matrix.solution.path }}"
- name: Build ${{ matrix.solution.name }}
run: dotnet build "${{ matrix.solution.path }}" --no-restore --configuration Release --verbosity minimal
- name: Display build result
if: success()
run: echo "✅ ${{ matrix.solution.name }} build succeeded"